示例#1
0
 void Repop()
 {
     gameObject.SetActive(false);
     poolOn.Remove(this);
     //poolOff.Add(this);
     Destroy(this);
     if (poolOn.Count + DDYellow.poolOn.Count + CubeCounter.instance.Count() < DDRed.poolOn.Count)
     {
         WinEvent.Loose();
     }
     SoundPool.PlayEatWhite();
 }
 public void Death()
 {
     --lives;
     if (lives >= 0)
     {
         animators[lives].SetBool("active", false);
     }
     if (lives <= 0)
     {
         WinEvent.Loose();
     }
 }