private void OnBoostChanged(PlayerBoostEvent playerBoostEvent) { if (barVisual != null) { boostStats = playerBoostEvent.PlayerBoost; fillAmount = boostStats.BoostPoints / boostStats.MaxBoostPoints; barVisual.fillAmount = fillAmount; } }
private void InjectBoostHealEventPublisher([GameObjectScope] BoostStats boostStats, [EventChannelScope] BoostHealEventChannel boostHealEventChannel) { this.boostStats = boostStats; this.boostHealEventChannel = boostHealEventChannel; }
public PlayerBoostEvent(BoostStats playerBoost, float oldBoostPoints, float newBoostPoints) { PlayerBoost = playerBoost; OldBoostPoints = oldBoostPoints; NewBoostPoints = newBoostPoints; }
private void InjectPlayerBoostEventPublisher([GameObjectScope] BoostStats boostStats, [EventChannelScope] PlayerBoostEventChannel playerBoostEventChannel) { this.boostStats = boostStats; this.playerBoostEventChannel = playerBoostEventChannel; }