Пример #1
0
 public void UpdateWithEvent(GunnerEvent e)
 {
     if (e is GunnerFire && pointedAtTarget)
     {
         Fire();
     }
 }
 public void UpdateWithEvent(GunnerEvent e)
 {
     if (e is GunnerFire && pointedAtTarget)
     {
         Fire();
     }
 }
Пример #3
0
 private void NotifyObservers(GunnerEvent e)
 {
     foreach (GunnerObserver ob in observerList)
     {
         ob.UpdateWithEvent(e);
     }
 }
 private void NotifyObservers(GunnerEvent e)
 {
     foreach (GunnerObserver ob in observerList)
     {
         ob.UpdateWithEvent(e);
     }
 }