// Use this for initialization void Start() { if (playername.Equals("Player")) { hud.setPlayerHp(HP); } else { hud.setEnemyHp(HP); } }
public void sethp(int hp) { HP = hp; hud.setPlayerHp(HP); }