Beispiel #1
0
 public void Victory()
 {
     active = false;
     inGameUI.EndGame(true);
     scoreScreen.EndGame(true);
     pauseMenu.gameObject.SetActive(false);
 }
 public void EndGame(bool victory = false)
 {
     active = false;
     inGameUI.EndGame(victory);
     scoreScreen.EndGame(victory);
     pauseMenu.gameObject.SetActive(false);
 }
Beispiel #3
0
 void Next()
 {
     if (step > 0)
     {
         step--;
         if (step == 0)
         {
             inGameUI.EndGame(true);
             scoreScreen.EndGame(true);
             pauseMenu.gameObject.SetActive(false);
         }
     }
 }
Beispiel #4
0
    // Update is called once per frame
    void Update()
    {
        bool win = true;

        foreach (var fa in fencedAreas)
        {
            if (!fa.full)
            {
                win = false;
                break;
            }
        }
        if (active && win)
        {
            active = false;
            Dog.Instance.Win();
            inGameUI.EndGame(true);
            scoreScreen.EndGame(true);
            pauseMenu.gameObject.SetActive(false);
        }
    }
Beispiel #5
0
 public void Victory()
 {
     inGameUI.EndGame(true);
     scoreScreen.EndGame(true);
     pauseMenu.canvas.enabled = false;
 }