示例#1
0
 public ShipMoveHandler(
     Camera camera,
     Ship ship,
     ScreenBoundary screenBoundary,
     StartShootingSignal startShootingSignal
     )
 {
     this.camera              = camera;
     this.ship                = ship;
     this.screenBoundary      = screenBoundary;
     this.startShootingSignal = startShootingSignal;
 }
 public ShipLaserHandler(
     Ship ship,
     Settings settings,
     LaserFacade.Pool laserPool,
     StartShootingSignal startShootingSignal,
     ShipCommonSettings shipCommonSettings
     )
 {
     this.ship                = ship;
     this.settings            = settings;
     this.laserPool           = laserPool;
     this.startShootingSignal = startShootingSignal;
     this.shipCommonSettings  = shipCommonSettings;
 }
 private void OnStartShootingSignalFired()
 {
     startShootingSignal -= OnStartShootingSignalFired;
     shootingAllowed      = true;
 }
 public void Initialize()
 {
     startShootingSignal += OnStartShootingSignalFired;
 }