Пример #1
0
        protected virtual void CloseMenu()
        {
            if (!closingMenu) //Don't try close menu multiple times
            {
                closingMenu = true;

                EventSystem.current.enabled = false; //So that it doesn't interfere with any EventSystem that will be loaded

                GameSceneManager.ClosePlayerMenuScene();
            }
        }
Пример #2
0
        public void SetUp()
        {
            if (backButton.GetComponent <MenuSelectableController>() == null)
            {
                Debug.LogError("No menu selectable controller on back button");
            }

            backButton.onClick.AddListener(() => GameSceneManager.ClosePlayerMenuScene());

            foreach (ToolbarSelectableController s in detailsPaneSelectables)
            {
                s.toolbarController = this;
            }
        }
 private void CloseMenu()
 => GameSceneManager.ClosePlayerMenuScene();