public void BuildThisStatusVision(BattleRoleData unit, HP_Controller hpC) { heroUnit = unit; HpC = hpC; heroNameText.text = heroUnit.ThisBasicRoleProperty().Name; RefreshHeroStatus(); }
private void Awake() { if (cam == null) { cam = GameObject.Find("Main Camera").GetComponent <Camera>(); } if (healthBar == null) { healthBar = GameObject.Find("HP_Bar").GetComponent <HP_Controller>(); } }