void Awake() { player = GameObject.FindGameObjectWithTag("Player"); exp = player.GetComponent <PlayerExperience>(); playerAbilities = player.GetComponent <PlayerAbilities>(); abilityImage = this.gameObject.GetComponent <Image>(); toolTip = GameObject.Find("SkillToolTipText").GetComponent <SkillTooltip>(); toolTipObject = GameObject.Find("SkillToolTip"); bar = GameObject.Find("AbilityBarPanel").GetComponent <UIAbilityBar>(); }
void Start() { sb = GameObject.Find("SkillBook").GetComponent <SkillBook>(); tooltip = sb.GetComponent <SkillTooltip>(); }