// Use this for initialization void Start() { currentHP = HPLeveles[1]; currentAttack = attackLevels[1]; currentDefence = defenceLevels[1]; heroHealth = FindObjectOfType<HeroHealthManager>(); }
void Start() { inv = GameObject.Find("Inventory").GetComponent<Inventory>(); hero = GameObject.Find("Hero").GetComponent<HeroHealthManager>(); //characterPanel = GameObject.Find("Character Panel").GetComponent<CharacterPanel>(); tooltip = inv.GetComponent<ToolTip>(); }