diff --git a/Assets/Scripts/Fighters/Fighter.cs b/Assets/Scripts/Fighters/Fighter.cs index 0cd552b8b2e7559e3f1e5f37a0c5ad46c2eaa396..7212e5477aed473119ec88e491f65c8bdd38fa33 100644 --- a/Assets/Scripts/Fighters/Fighter.cs +++ b/Assets/Scripts/Fighters/Fighter.cs @@ -139,6 +139,7 @@ public abstract class Fighter : MonoBehaviour, IRoundCallback rigidbody.bodyType = RigidbodyType2D.Dynamic; maxHealth = currentHealth = Mathf.RoundToInt(baseHealth * GetStats().healthMultiplier); animator.Play("Idle"); + healthBarController.Reset(); } public virtual void OnRoundEnd() @@ -153,6 +154,6 @@ public abstract class Fighter : MonoBehaviour, IRoundCallback transform.localScale = initalScale; spriteRenderer.sprite = initialSprite; callbacks.Clear(); - healthBarController.Reset(); + healthBarController.SetHealthBarEnabled(false); } }