Esempio n. 1
0
        private void OnEnable()
        {
            _joystickOptions = EditorToolbox.GenerateJoystickNames();
            _axisOptions     = EditorToolbox.GenerateJoystickAxisNames();

            EditorToolbox.ShowStartupWarning();
            IsOpen = true;

            _tryedToFindInputManagerInScene = false;
            if (_inputManager == null)
            {
                _inputManager = UnityEngine.Object.FindObjectOfType(typeof(TPCEngine.InputManager)) as TPCEngine.InputManager;
            }
            if (_selectionPath == null)
            {
                _selectionPath = new List <int>();
            }
            if (_searchResults == null)
            {
                _searchResults = new List <SearchResult>();
            }
            if (_highlightTexture == null)
            {
                CreateHighlightTexture();
            }

#pragma warning disable 618
            EditorApplication.playmodeStateChanged += HandlePlayModeChanged;
#pragma warning restore 618
            _isDisposed = false;
        }
Esempio n. 2
0
        private void OnEnable()
        {
            _joystickOptions = EditorToolbox.GenerateJoystickNames();
            _axisOptions     = EditorToolbox.GenerateJoystickAxisNames();

            EditorToolbox.ShowStartupWarning();
            _intputConfigurations = serializedObject.FindProperty("_inputConfigurations");
            _dontDestroyOnLoad    = serializedObject.FindProperty("_dontDestroyOnLoad");
            _ignoreTimescale      = serializedObject.FindProperty("_ignoreTimescale");
            _playerOneDefault     = serializedObject.FindProperty("_playerOneDefault");
            _playerTwoDefault     = serializedObject.FindProperty("_playerTwoDefault");
            _playerThreeDefault   = serializedObject.FindProperty("_playerThreeDefault");
            _playerFourDefault    = serializedObject.FindProperty("_playerFourDefault");
        }