Beispiel #1
0
 public void RemoveUnit(Unit unit)
 {
     if (OwnedUnits.Contains(unit))
     {
         OwnedUnits.Remove(unit);
     }
 }
Beispiel #2
0
 public void AddUnit(Unit unit)
 {
     if (!OwnedUnits.Contains(unit))
     {
         OwnedUnits.Add(unit);
     }
 }