Пример #1
0
 private void InjectPlayerController([ApplicationScope] KeyboardInputSensor keyboardInputSensor,
                                     [ApplicationScope] MouseInputSensor mouseInputSensor,
                                     [ApplicationScope] ActivityStack activityStack,
                                     [ApplicationScope] AchivementController achivementController,
                                     [EntityScope] PlayerMover playerMover,
                                     [EntityScope] Health health,
                                     [EntityScope] Inventory inventory,
                                     [EntityScope] InteractableSensor interactableSensor,
                                     [EntityScope] ItemSensor itemSensor,
                                     [EntityScope] SoldierAnimatorUpdater soldierAnimatorUpdater,
                                     [GameObjectScope] NetworkIdentity networkIdentity,
                                     [EventChannelScope] DeathCircleHurtEventChannel deathCircleHurtEventChannel,
                                     [EventChannelScope] BoostHealEventChannel boostHealEventChannel,
                                     [EventChannelScope] PlayerDeathEventChannel playerDeathEventChannel,
                                     [EventChannelScope] SpawnItemDropEventChannel spawnItemDropEventChannel)
 {
     this.keyboardInputSensor = keyboardInputSensor;
     this.mouseInputSensor    = mouseInputSensor;
     this.activityStack       = activityStack;
     this.playerMover         = playerMover;
     this.health                      = health;
     this.inventory                   = inventory;
     this.interactableSensor          = interactableSensor;
     this.itemSensor                  = itemSensor;
     this.networkIdentity             = networkIdentity;
     this.deathCircleHurtEventChannel = deathCircleHurtEventChannel;
     this.boostHealEventChannel       = boostHealEventChannel;
     this.soldierAnimatorUpdater      = soldierAnimatorUpdater;
     this.playerDeathEventChannel     = playerDeathEventChannel;
     this.spawnItemDropEventChannel   = spawnItemDropEventChannel;
     this.achivementController        = achivementController;
 }
Пример #2
0
 private void InjectDeathCircleHurtEventPublisher([GameObjectScope] DeathCircleController deathCircle,
                                                  [EventChannelScope] DeathCircleHurtEventChannel deathCircleHurtEventChannel)
 {
     this.deathCircle = deathCircle;
     this.deathCircleHurtEventChannel = deathCircleHurtEventChannel;
 }