/// <summary> /// /// </summary> /// <param name="amount"></param> public void DamagePlayer(float amount) { curPlayerHealth -= amount; playerStatsUI.PlayerHitAnimationUI(); if (curPlayerHealth < 0) { //Player is DEAD } playerStatsUI.SetHealthAmt(curPlayerHealth / playerMaxHealth); characterUI.SetHealth(curPlayerHealth); }