Example #1
0
 private void Update()
 {
     if (m_currentSubMenu != null && !m_currentSubMenu.gameObject.activeSelf)
     {
         m_currentSubMenu = null;
     }
 }
Example #2
0
        private void EnableSubMenu(DemoSubMenu _enabledSubMenu)
        {
            DisableAllSubMenus();

            // Enable new feature window
            _enabledSubMenu.gameObject.SetActive(true);

            // Save the window instance
            m_currentSubMenu = _enabledSubMenu;
        }