コード例 #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);
    }
コード例 #2
0
 private void Start()
 {
     Service.Get <EventDispatcher>().AddListener <ButtonEvents.ClickEvent>(onCloseButtonClicked);
     mainNav = GameObject.FindWithTag(UIConstants.Tags.UI_Tray_Root).GetComponentInChildren <MainNavStateHandler>(includeInactive: true);
 }