Пример #1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        if (m_OnClick != null)
        {
            m_OnClick.Invoke();
        }

        page.Enter();
    }
Пример #2
0
    public void Initialize(PageState initialPage)
    {
        //Initialize pages
        var pages = GetComponentsInChildren <PageState>(includeInactive: true);

        foreach (var page in pages)
        {
            if (page == initialPage)
            {
                //page.Enter();
            }
            else
            {
                page.Exit(false);
            }
        }

        initialPage.Enter();
    }