Beispiel #1
0
 /// <summary>
 /// Enqueues a cannon ball to remove from the game.
 /// </summary>
 /// <param name="cannonBall">Cannon ball to remove from the world.</param>
 public void RemoveCannonBall(CannonBall cannonBall)
 {
     cannonBallsToRemove.Enqueue(cannonBall);
 }
Beispiel #2
0
 /// <summary>
 /// Returns the enemy to the resource pool.
 /// </summary>
 public static void GiveBack(CannonBall cannonBall)
 {
     cannonBall.Destroy();
     CannonBallPool.GiveBack(cannonBall);
 }