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