Example #1
0
 // Update is called once per frame
 void Update()
 {
     moves.text = movesAmount + " moves left";
     if (movesAmount < 1)
     {
         GameOverScript.Setup(maxPlatform);
         if (GameOverScript.PlayAgain)
         {
             movesAmount = 7;
         }
     }
 }
 void CallGameOverUI()
 {
     GameOverUI.Setup();
 }
Example #3
0
 public override void onDeath(Ship _attacker)
 {
     Destroy(gameObject);
     gameOver.gameObject.SetActive(true);
     gameOver.Setup(score);
 }
Example #4
0
 public void GameOver()
 {
     gameOverScreen.SetActive(true);
     GameOverScript = gameOverScreen.GetComponent <GameOverScript>();
     GameOverScript.Setup(scoreScript.duckNum);
 }