// Update is called once per frame void Update() { if (!pauseGame.IsResetSet()) { if (Input.inputString.Length > 0 && !pauseGame.IsGamePaused()) { foreach (char i in Input.inputString) { if (i.Equals(type [0]) || i.Equals(type [0].ToString().ToUpper() [0])) { typeD.Append(type [0]); type.Remove(0, 1); UpdateTexts(); } } } // typeThis.gameObject.SetActive (false); // typeDThis.gameObject.SetActive (false); } else { // print (pauseGame.IsResetSet ()); type.Remove(0, type.Length); typeD.Remove(0, typeD.Length); } if (type.Length <= 0 && !pauseGame.IsGamePaused()) { GetNewRandIndex(); } }
// Update is called once per frame void Update() { if (Input.GetKey(KeyCode.Escape) && !pauseGame.IsGamePaused()) { playArea.SetActive(false); pauseMenuPanel.SetActive(true); pauseGame.SetPauseGame(); } // print (pauseMenuPanel.activeInHierarchy.ToString () + pauseGame.IsResetSet() + Input.GetKey(KeyCode.Escape) ); // if (Input.GetKey (KeyCode.Escape) && pauseMenuPanel.activeInHierarchy) { // pauseMenuPanel.SetActive (false); // // playArea.SetActive (true); // // pauseGame.ResumeGame (); // } }