Example #1
0
        private void Update()
        {
            if (_gameLoadingPannel == null && IsInitializing)
            {
                _gameLoadingPannel = Pannel.Show("gameLoading");
            }

            if (!IsInitializing && _gameLoadingPannel != null)
            {
                _gameLoadingPannel.Close();
                _gameLoadingPannel = null;
            }

            if (Input.GetKeyDown(KeyCode.F1))
            {
                if (_debugPannel == null)
                {
                    _debugPannel = Pannel.Show("DebugPannel");
                }
                else
                {
                    _debugPannel.Close();
                }
            }
        }
Example #2
0
 protected virtual void Update()
 {
     if (closable && Input.GetKey(KeyCode.Escape))
     {
         _pannel.Close();
     }
 }