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