Esempio n. 1
0
 public void desactiveAllScreen()
 {
     UIScreen.SetActive(false);
     GameOverScreen.SetActive(false);
     LogoScreen.SetActive(false);
     MenuScreen.SetActive(false);
     CronomeScreen.SetActive(false);
     creditScreen.SetActive(false);
 }
Esempio n. 2
0
    //
    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
    }
Esempio n. 3
0
    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);
    }