リザルトボタン出現時間調整
This commit is contained in:
parent
f10ac9ebf3
commit
f62c02c782
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue