Skip to content
Snippets Groups Projects
Commit 423ca208 authored by Addin Munawwar's avatar Addin Munawwar
Browse files

fix: coroutine deny on inactive

parent 0c4df69b
No related merge requests found
...@@ -71,7 +71,7 @@ public class PlayerHealth : Damageable ...@@ -71,7 +71,7 @@ public class PlayerHealth : Damageable
base.Heal(amount); base.Heal(amount);
ui.easeFillSlider.value = currentHealth; ui.easeFillSlider.value = currentHealth;
StartCoroutine(EasingHealthGain()); if (gameObject.activeSelf) StartCoroutine(EasingHealthGain());
} }
private IEnumerator EasingHealth() { private IEnumerator EasingHealth() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment