Esempio n. 1
0
 public void GameOver()
 {
     if (!youhavecompleted)
     {
         StartCoroutine(Adsshowing());
         imagebackgournd.SetActive(true);
         HighScore.text = "HighScore:" + PlayerPrefs.GetInt("maas").ToString();
         Gameovertext.SetActive(true);
         Retrybutton.SetActive(true);
     }
     isgameover = true;
 }
Esempio n. 2
0
    // Start is called before the first frame update
    private void Awake()
    {
        //setting background active
        imagebackgournd.SetActive(false);

        envtri1.SetActive(false);
        env1.SetActive(true);



        triangle.SetActive(false);
        triangle1.SetActive(false);
        for (int i = 0; i < box.Length; i++)
        {
            box[i].SetActive(false);
            box1[i].SetActive(false);
        }
        Gameovertext.SetActive(false);
        Retrybutton.SetActive(false);
    }