public int TakeDamage(int damage) { int temp = script.TakeDamage(damage); if (combatGUI) { combatGUI.UpdateHealth(temp); } return(temp); }