public void OnPointerClick(PointerEventData eventData) { if (m_OnClick != null) { m_OnClick.Invoke(); } page.Enter(); }
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(); }