public void UpdateUnitFrame(HeroController hero) { int curHp = hero.GetCurHp(); int maxHp = hero.GetMaxHp(); healthBar.fillAmount = (float)curHp / maxHp; levelText.text = hero.GetCurLevel().ToString(); }