Exemple #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;
 }
Exemple #2
0
 private void InjectCellObject([EntityScope] Button button,
                               [EntityScope] Image image,
                               [ApplicationScope] MouseInputSensor mouseInputSensor)
 {
     this.button           = button;
     ImageBackground       = image;
     this.mouseInputSensor = mouseInputSensor;
     EquipAt = EquipWeaponAt.Primary;
     button.onClick.AddListener(OnClickButton);
 }