Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 private void InjectInteractableEventPublisher([GameObjectScope] InteractableSensor interactableSensor,
                                               [EventChannelScope] InteractableEventChannel interactableEventChannel)
 {
     this.interactableSensor       = interactableSensor;
     this.interactableEventChannel = interactableEventChannel;
 }
Ejemplo n.º 3
0
 private void InjectDeathCircleController([EventChannelScope] DeathCircleStatusUpdateEventChannel deathCircleStatusUpdateEventChannel, [EventChannelScope] DeathCircleTimeLeftEventChannel deathCircleTimeLeftEventChannel, [EntityScope] InteractableSensor interactableSensor)
 {
     this.deathCircleStatusUpdateEventChannel = deathCircleStatusUpdateEventChannel;
     this.deathCircleTimeLeftEventChannel     = deathCircleTimeLeftEventChannel;
 }