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