示例#1
0
 public void AddCannonTurret(CannonTurret turret)
 {
     if (!Turrets.Contains(turret))
     {
         Turrets.Add(turret);
     }
 }
示例#2
0
 public void DeleteTurret(Turret t)
 {
     if (Turrets.Contains(t))
     {
         // TODO: Investigate this memory leak.
         t.Active = false;
         Turrets.Remove(t);
         if (RemoveTurret != null)
         {
             RemoveTurret(this, new TurretArgs(t));
         }
     }
 }