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 Awake()
        {
            gameController = Finder <GameController> .Find;

            playerMover             = GetComponent <FlapMover>();
            sensor                  = GetComponentInChildren <Sensor>();
            playerDeathEventChannel = Finder <PlayerDeathEventChannel> .Find;

            updatePlayer = UpdatePlayerInMainMenu;
        }
Ejemplo n.º 3
0
 private void InjectEndGameUIController([EventChannelScope] PlayerDeathEventChannel playerDeathChannel)
 {
     this.playerDeathChannel = playerDeathChannel;
 }
Ejemplo n.º 4
0
 private void InjectPlayerDeathEventPublisher([EntityScope] Health health,
                                              [EventChannelScope] PlayerDeathEventChannel eventChannel)
 {
     this.health       = health;
     this.eventChannel = eventChannel;
 }
Ejemplo n.º 5
0
 private void InjectInstanciateOnDeath([EventChannelScope] PlayerDeathEventChannel playerDeathEventChannel,
                                       [EntityScope] Inventory inventory)
 {
     this.playerDeathEventChannel = playerDeathEventChannel;
     this.inventory = inventory;
 }