Пример #1
0
 private void OnBoostChanged(PlayerBoostEvent playerBoostEvent)
 {
     if (barVisual != null)
     {
         boostStats           = playerBoostEvent.PlayerBoost;
         fillAmount           = boostStats.BoostPoints / boostStats.MaxBoostPoints;
         barVisual.fillAmount = fillAmount;
     }
 }
Пример #2
0
 private void InjectBoostHealEventPublisher([GameObjectScope] BoostStats boostStats,
                                            [EventChannelScope] BoostHealEventChannel boostHealEventChannel)
 {
     this.boostStats            = boostStats;
     this.boostHealEventChannel = boostHealEventChannel;
 }
Пример #3
0
 public PlayerBoostEvent(BoostStats playerBoost, float oldBoostPoints, float newBoostPoints)
 {
     PlayerBoost    = playerBoost;
     OldBoostPoints = oldBoostPoints;
     NewBoostPoints = newBoostPoints;
 }
Пример #4
0
 private void InjectPlayerBoostEventPublisher([GameObjectScope] BoostStats boostStats,
                                              [EventChannelScope] PlayerBoostEventChannel playerBoostEventChannel)
 {
     this.boostStats = boostStats;
     this.playerBoostEventChannel = playerBoostEventChannel;
 }