void Update() { if (Tips.GetNumberTip() == 5 && TouchController.activeSelf) { Timer.Stop(); TouchController.SetActive(false); ContinueButton.SetActive(true); Tips.ChangeTip(); } if (ColorCube.CheckWin() && GameIsOn && !player.InMove()) { win = true; ContinueButton.SetActive(true); Timer.Stop(); TouchController.SetActive(false); GameIsOn = false; } //if (!GameIsOn) // Timer.Stop(); if (player.InMove()) { Prompts.ReturnToInitState(); } }
void Update() { if (ColorCube.CheckWin() && GameIsOn && !player.InMove()) { ContinueButton.SetActive(true); TouchController.SetActive(false); GameIsOn = false; Tips.CompletTip(); } }
void Update() { if (ColorCube.CheckWin() && GameIsOn && !player.InMove()) { ContinueButton.SetActive(true); Timer.Stop(); TouchController.SetActive(false); GameIsOn = false; } if (player.InMove()) { Prompts.ReturnToInitState(); } }