public void Damage(float _damage) { CurrentHP -= _damage; Debug.Log(CurrentHP); UIM.UpdateHealth(CurrentHP / MaxHP); if (CurrentHP <= 0) { //Put death code here, IDK what this does yet CurrentHP = MaxHP; GM.Death(); } }