public void OpenFailPanel() { Score.stop(); TapToGo.SetActiveScreen(false); disableScreen.SetActive(false); Score.SetScoreFailPanel(); failPanel.SetActive(true); MessageSystemGameBlock.ChangeLayerRight(0); StartCoroutine(FinishStopWatch()); Question.DisableMenuAndQuestion(); PauseGame.SetActivePause(false); }
IEnumerator CloseAfterPlay() { MessageSystemGameBlock.ChangeLayerRight(1); blockForMenu.SetActive(false); Animation anim = menu.GetComponent <Animation>(); anim["OpenMenuDuringPlay"].time = anim["OpenMenuDuringPlay"].length; anim["OpenMenuDuringPlay"].speed = -1; anim.Play("OpenMenuDuringPlay"); yield return(new WaitForSeconds(anim["OpenMenuDuringPlay"].length)); menu.SetActive(false); numberOperation = 2; CloseMenu.NumberOperation = 0; if (!PauseGame.IsPause) { MessageSystemPlayingScene.Player.GetComponent <Animator>().speed = 1; MessageSystemGameBlock.StartAfterHit(); PauseGame.SetActivePause(true); } question.SetActive(true); }