Ejemplo n.º 1
0
 public static void KillPlayer(Idle player)
 {
     BGMLvl.StopBGM();
     SoundManager.PlaySound("death");
     Destroy(player.gameObject);
     gm.StartCoroutine(gm.RespawnPlayer());
 }
Ejemplo n.º 2
0
 public static void isWin()
 {
     BGMLvl.StopBGM();
     if (score < 100)
     {
         //Game Over
         lives   = 0;
         poinMin = true;
         SoundManager.PlaySound("gameOver");
     }
     else
     {
         //win
         win = true;
         SoundManager.PlaySound("win");
     }
 }