Beispiel #1
0
        public void Start()
        {
            string tokenTranslation = Service.Get <Localizer>().GetTokenTranslation(TitleTextToken);
            MainNavStateHandler componentInChildren = GameObject.FindWithTag(UIConstants.Tags.UI_Tray_Root).GetComponentInChildren <MainNavStateHandler>();

            componentInChildren.SetTitleText(tokenTranslation);
        }
Beispiel #2
0
        private void setTitleText(string title)
        {
            MainNavStateHandler componentInChildren = GameObject.FindWithTag(UIConstants.Tags.UI_Tray_Root).GetComponentInChildren <MainNavStateHandler>();

            componentInChildren.SetTitleText(title);
        }
Beispiel #3
0
 private void Start()
 {
     Service.Get <EventDispatcher>().AddListener <ButtonEvents.ClickEvent>(onCloseButtonClicked);
     mainNav = GameObject.FindWithTag(UIConstants.Tags.UI_Tray_Root).GetComponentInChildren <MainNavStateHandler>(includeInactive: true);
 }