Beispiel #1
0
 private void TryCatchAsteroid(Asteroid asteroid)
 {
     if (asteroid != null && asteroid.AsteroidType == FieldType)
     {
         asteroid.AttachToField(this);
     }
 }
Beispiel #2
0
 public void AddAsteroid(Asteroid asteroid)
 {
     _attachedAsteroids.Add(asteroid);
     if (asteroid.AttachField != this)
         asteroid.AttachToField(this);
 }