public void Start() { string tokenTranslation = Service.Get <Localizer>().GetTokenTranslation(TitleTextToken); MainNavStateHandler componentInChildren = GameObject.FindWithTag(UIConstants.Tags.UI_Tray_Root).GetComponentInChildren <MainNavStateHandler>(); componentInChildren.SetTitleText(tokenTranslation); }
private void setTitleText(string title) { MainNavStateHandler componentInChildren = GameObject.FindWithTag(UIConstants.Tags.UI_Tray_Root).GetComponentInChildren <MainNavStateHandler>(); componentInChildren.SetTitleText(title); }
private void Start() { Service.Get <EventDispatcher>().AddListener <ButtonEvents.ClickEvent>(onCloseButtonClicked); mainNav = GameObject.FindWithTag(UIConstants.Tags.UI_Tray_Root).GetComponentInChildren <MainNavStateHandler>(includeInactive: true); }