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