public void UpdateWithEvent(GunnerEvent e) { if (e is GunnerFire && pointedAtTarget) { Fire(); } }
private void NotifyObservers(GunnerEvent e) { foreach (GunnerObserver ob in observerList) { ob.UpdateWithEvent(e); } }