Example #1
0
 void Start()
 {
     mapUI = GetComponentInParent <SubwayMapUI>();
     GetComponent <Button>().onClick.AddListener(OnClick);
     originalText  = GetComponentInChildren <Text>().text;
     anim          = GetComponent <Animator>();
     startedBefore = true;
     CheckDiscovery();
 }
Example #2
0
 void Start()
 {
     if (sm == null)
     {
         sm = this;
     }
     mapUI = GlobalController.gc.GetComponentInChildren <SubwayMapUI>(true);
     CloseMapUI();
 }
Example #3
0
 public void OnSelect(BaseEventData eventData)
 {
     mapUI = mapUI ?? GetComponentInParent <SubwayMapUI>();
     mapUI.ReactToItemHover(this.stop);
 }