public void LifeAdd(LifeEventData data) { progressBar.timer += data.lifeValue; T6_SoundEvent.playSound.Invoke(new SoundEventData(batterieUp)); if (progressBar.timer > progressBar.maxTimer) { progressBar.timer = progressBar.maxTimer; } isLifeAdding = true; if (progressBar.timer > progressBar.maxTimer) { progressBar.timer = progressBar.maxTimer; } if (activeScreenAnim) { GreenScreenAnim(); } StartCoroutine(ShowBatterieValue(data.lifeValue)); }
public void DestroyBatterie(LifeEventData data) { Destroy(gameObject); }