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