Ejemplo n.º 1
0
 void CleanupLevel()
 {
     if (null != Projectiles)
     {
         Projectiles.DestroyAll();
         Projectiles = null;
     }
     if (null != Turrets)
     {
         Turrets.DestroyAll();
         Turrets = null;
     }
     if (null != Waves)
     {
         Waves.DestroyAll();
         Waves = null;
     }
     GameObjectFactory.Cleanup();
     LevelDesc = null;
 }