public void desactiveAllScreen() { UIScreen.SetActive(false); GameOverScreen.SetActive(false); LogoScreen.SetActive(false); MenuScreen.SetActive(false); CronomeScreen.SetActive(false); creditScreen.SetActive(false); }
// public IEnumerator starGame() { // Instantiate(playerPref, playerPoint.transform.position, playerPoint.rotation); desactiveAllScreen(); activateScreen(UIScreen); CronomeScreen.SetActive(true); StartCoroutine(startCrono()); yield return(new WaitForSeconds(3)); currentGameState = GameState.inGame; //metodo que muetra la pantalla }
public IEnumerator startCrono() { cronoTXT.text = "3"; yield return(new WaitForSeconds(1)); cronoTXT.text = "2"; yield return(new WaitForSeconds(1)); cronoTXT.text = "1"; yield return(new WaitForSeconds(1)); cronoTXT.text = "GOOO!!!"; yield return(new WaitForSeconds(1)); CronomeScreen.SetActive(false); }