Exemplo n.º 1
0
 public void SetHUD()
 {
     Actor             = gameObject.GetComponentInParent <TempActor>();
     nameText.text     = Actor.unitName;
     levelText.text    = "Lvl " + Actor.unitLevel;
     hpSlider.maxValue = Actor.maxHP;
     hpSlider.value    = Actor.currentHP;
 }
Exemplo n.º 2
0
 public void Start()
 {
     Actor = gameObject.GetComponentInParent <TempActor>();
 }