Skip to content
Snippets Groups Projects
Verified Commit de0d0118 authored by Adrian Paschkowski's avatar Adrian Paschkowski :thinking:
Browse files

Disable health bars ourside round

parent 6b02b830
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment