Esempio n. 1
0
 private void Landing(string infoText, int score)
 {
     gm.GetGUI().infoDrop.SetActive(true);
     gm.GetGUI().drop.text = infoText;
     gm.GetGUI().valDrop.text = "+" + score.ToString();
     Debug.Log(infoText + " : " + score.ToString());
     GameParams.AddScore(score);
     GameParams.AddLastScore(score);
     GameParams.SetScore(GameParams.GetScore() * curValFlip);
     GameParams.SetLastScore(GameParams.GetScore());
     am.PlayLanding();
     curValFlip = 0;
     StartCoroutine(HideInfoDrop(1f));
     _backFlip = false;
 }
Esempio n. 2
0
    public void Game()
    {
        fading.GetComponent <Animation>().Play("Fading");
        Time.timeScale = 1;
        stateGame      = "game";
        spawn.GenerationLevel();
        GameParams.SetScore(0);
        GameParams.SetLastScore(0);
        GUI.menuP.SetActive(false);
        GUI.storeP.SetActive(false);
        GUI.infoLastScore.SetActive(false);
        GUI.score.gameObject.SetActive(true);
        GUI.coinsObj.SetActive(true);
        GUI.pause.gameObject.SetActive(true);
        controller.SetActive(true);
        audioManager.PlayClick();
        isPause = false;
        audioManager.PlayGamePlay();

        car.SetActive(true);
        InitGame();
    }