Example #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(_InputManager)) as _InputManager;
            }
            if (_selectionPath == null)
            {
                _selectionPath = new List <int>();
            }
            if (_searchResults == null)
            {
                _searchResults = new List <SearchResult>();
            }
            if (_highlightTexture == null)
            {
                CreateHighlightTexture();
            }

            EditorApplication.playmodeStateChanged += HandlePlayModeChanged;
            _isDisposed = false;
        }
Example #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");
        }