Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     gameObject.transform.Find("Text").gameObject.SetActive(false);
     //gameObject.transform.Find("bg").gameObject.SetActive(false);
     EventTriggerListener.GetComponent(this.gameObject).onEnter = OnMouseEnter;
     EventTriggerListener.GetComponent(this.gameObject).onExit  = OnMouseExit;
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     skillGo        = gameObject.transform.parent.transform.Find("TextSkill").gameObject;
     skillText      = gameObject.transform.parent.transform.Find("TextSkill").GetComponent <Text>();
     skillTextChild = gameObject.transform.parent.transform.Find("TextSkill").Find("Text").GetComponent <Text>();
     skillTextImage = gameObject.transform.parent.transform.Find("TextSkill").Find("Image").gameObject;
     EventTriggerListener.GetComponent(this.gameObject).onEnter = OnMouseEnter;
     EventTriggerListener.GetComponent(this.gameObject).onExit  = OnMouseExit;
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     challengeName = gameObject.transform.parent.parent.Find("challengeName").gameObject;
     if (gameObject.name == "reward_1")
     {
         reward = challengeName.transform.Find("reward_1").GetComponent <Text>();
     }
     else if (gameObject.name == "reward_2")
     {
         reward = challengeName.transform.Find("reward_2").GetComponent <Text>();
     }
     else if (gameObject.name == "reward_3")
     {
         reward = challengeName.transform.Find("reward_3").GetComponent <Text>();
     }
     else
     {
         reward = challengeName.transform.Find("reward_4").GetComponent <Text>();
     }
     rewardChild = reward.gameObject.transform.Find("Text").GetComponent <Text>();
     EventTriggerListener.GetComponent(this.gameObject).onEnter = OnMouseEnter;
     EventTriggerListener.GetComponent(this.gameObject).onExit  = OnMouseExit;
 }
 void Awake()
 {
     labelText         = label.GetComponent <Text>();
     demonstrationText = demonstration.GetComponent <Text>();
     //demonstrationText.enabled = false;
 }