Exemple #1
0
 public override void Destroyed()
 {
     if (!balls.IsDestroyed())
     {
         balls.Destroy();
     }
 }
Exemple #2
0
 public void Destroy()
 {
     if (isAddedToGame)
     {
         RemoveFromGame();
     }
     if (pool == null || pool.IsDestroyed())
     {
         isDestroyed = true;
         foreach (EntityComponent component in components)
         {
             component.Destroyed();
         }
     }
     else
     {
         pool.Deposit(this);
     }
 }