Ejemplo n.º 1
0
 /// <summary>
 /// Remove all ships from this task force.
 /// </summary>
 public void RemoveAllShips()
 {
     foreach (MovingObject ship in Boids)
     {
         ShipFactory.Instance.ReturnAShip(ship);
     }
     Boids.Clear();
 }
 // clears the memory of the boids, the boid list, and the boid data native array
 private void OnDisable()
 {
     Boids.Clear();
     _boidTransforms.Dispose();
     _boids.Dispose();
 }