private void Awake() { Shedule = FindObjectOfType <UIShedule> (); image = GetComponent <Image> (); Show(false); EventManager.onHourPassed += PointTheHour; }
private void Awake() { communicationPanel = FindObjectOfType <CommunicationPanelManager> (); routePanel = FindObjectOfType <RoutePanelManager> (); shedule = FindObjectOfType <UIShedule> (); shedulePanel = FindObjectOfType <ShedulePanel> (); }
public void OnAwake() { Shedule = FindObjectOfType <UIShedule> (); RectTransform = GetComponent <RectTransform> (); RectTransform.localPosition = new Vector2(RectTransform.localPosition.x, RectTransform.localPosition.y + ItemNumber * HEIGHT); pointer = GetComponentInChildren <UIShedulePointer> (); pointer.PointerNumber = ItemNumber; TimeText = GetComponentInChildren <UIOverTime> ().GetComponentInChildren <TextMeshProUGUI> (); SetText(ItemNumber); firstTrainNumber = pointer.GetComponentInChildren <UISheduleFirstTrainNumber> (); firstTrainNumber.OnAwake(); secondTrainNumber = pointer.GetComponentInChildren <UISheduleSecondTrainNumber> (); secondTrainNumber.OnAwake(); HalfHourFirst = GetComponentInChildren <UIHalfHourFirst> (); HalfHourFirst.OnAwake(); HalfHourSecond = GetComponentInChildren <UIHalfHourSecond> (); HalfHourSecond.OnAwake(); }