Example #1
0
    public void GoToRoot(UIPage.PageId pageId)
    {
        var newPage = pages.FirstOrDefault(pat => pat.pageId == pageId);

        if (newPage != null && history.currentPage.page != newPage.page)
        {
            GoToRoot(newPage.page);
        }
        // Else we're already there
    }
Example #2
0
    /// <summary>
    /// Go to a new page
    /// </sumary>
    public void GoToPage(UIPage.PageId pageId, object context)
    {
        var newPage = pages.FirstOrDefault(pat => pat.pageId == pageId);

        if (newPage != null && history.currentPage.page != newPage.page)
        {
            history.GoTo(newPage.page, context);
        }
        // Else we're already there
    }
Example #3
0
 void GoToPage(UIPage.PageId page, object context)
 {
     this.gameObject.SetActive(false);
     NavigationManager.Instance.GoToPage(page, context);
 }
Example #4
0
 void GoToRoot(UIPage.PageId page)
 {
     this.gameObject.SetActive(false);
     NavigationManager.Instance.GoToRoot(page);
 }