public void UpdateHealth() { if (model.GetHealth() <= 0) { (View.CurrentScene as FightScene).GameOver(transform.GetSiblingIndex()); } health_text.text = (int)model.GetHealth() + "/" + model.GetPlayerAttribute(PlayerAttribute.生命值); health_bar.fillAmount = (float)(model.GetHealth() / model.GetPlayerAttribute(PlayerAttribute.生命值)); }