/// <summary>
        /// Displays the MenuPage, and selects its default element.
        /// </summary>
        public void Show()
        {
            BeforeShow?.Invoke();

            self.SetActive(true);
            cg.interactable = true;
            cg.alpha        = 1f;
            isShowing       = true;
            MenuChangerMod.displayedPages.Add(this);
            nav.SelectDefault();

            AfterShow?.Invoke();
        }
Пример #2
0
 public virtual void Show()
 {
     if (BeforeShow != null)
     {
         BeforeShow.Invoke();
     }
     if (UIShowEvent != null)
     {
         UIShowEvent(this);
     }
     gameObject.SetActive(true);
     if (AfterShow != null)
     {
         AfterShow.Invoke();
     }
 }