예제 #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;
 }