/// <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); }
/// <summary> /// Returns the enemy to the resource pool. /// </summary> public static void GiveBack(CannonBall cannonBall) { cannonBall.Destroy(); CannonBallPool.GiveBack(cannonBall); }