Exemple #1
0
 public void Death()
 {
     SoundPool.PlayDeath();
     this.gameObject.SetActive(false);
     DDRed.poolOn.Remove(this);
     DDRed.poolOff.Add(this);
     if (!MapEditor.active)
     {
         ScoreCounter.instance.Collect();
     }
     if (poolOn.Count == 0)
     {
         WinEvent.Win();
     }
 }