Esempio n. 1
0
 public void Start()
 {
     Offset      = new Vector3(40, 40, 0);
     panel       = SkillInfoPanel.Instance;
     panelObject = panel.gameObject;
     skill       = gameObject.GetComponent <BaseSkill>();
     if (skill == null)
     {
         Debug.Log("Something went wrong. Skill mouse over on object " + gameObject.name + " didn't find the associated skill.");
     }
 }
Esempio n. 2
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     skillInfoPanel       = GameObject.Instantiate(Introduce, GameObject.Find("Main").transform).GetComponent <SkillInfoPanel>();
     skillInfoPanel.skill = skill;
 }