예제 #1
0
    public void BuildThisStatusVision(BattleRoleData unit, HP_Controller hpC)
    {
        heroUnit = unit;
        HpC      = hpC;

        heroNameText.text = heroUnit.ThisBasicRoleProperty().Name;


        RefreshHeroStatus();
    }
예제 #2
0
 private void Awake()
 {
     if (cam == null)
     {
         cam = GameObject.Find("Main Camera").GetComponent <Camera>();
     }
     if (healthBar == null)
     {
         healthBar = GameObject.Find("HP_Bar").GetComponent <HP_Controller>();
     }
 }