リザルトボタン出現時間調整

This commit is contained in:
kimura 2021-09-22 15:55:09 +09:00
parent f10ac9ebf3
commit f62c02c782
1 changed files with 13 additions and 0 deletions

View File

@ -79,6 +79,19 @@ public class CookingResult : MonoBehaviour
private void SetUI(CornResult result)
{
centerOkButton.gameObject.SetActive(false);
perfectButton.gameObject.SetActive(false);
leftOkButton.gameObject.SetActive(false);
destructionButton.gameObject.SetActive(false);
this.CallWaitForSeconds(1.25f, () =>
{
centerOkButton.gameObject.SetActive(result == CornResult.Perfect);
perfectButton.gameObject.SetActive(result != CornResult.Perfect);
leftOkButton.gameObject.SetActive(result == CornResult.Good);
destructionButton.gameObject.SetActive(result == CornResult.Failure);
});
perfectResultObject.SetActive(result == CornResult.Perfect);
goodResultObject.SetActive(result == CornResult.Good);
failureResultObject.SetActive(result == CornResult.Failure);