Example #1
0
 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>();
 }
Example #2
0
 void Start()
 {
     sb      = GameObject.Find("SkillBook").GetComponent <SkillBook>();
     tooltip = sb.GetComponent <SkillTooltip>();
 }