void OnEnable()
        {
            instance = this;

            hierarchyGUI.OnEnable();
            controlSchemes.OnEnable(hierarchyGUI);
            gamepadProfilesWindow.OnEnable(hierarchyGUI);
            EditorApplication.playModeStateChanged += OnPlayStateChanged;

            ConvertUnityInputManager.ShowStartupWarning();
        }
 void OnEnable()
 {
     instance   = this;
     selections = new Selection[2];
     for (int i = 0; i < 2; i++)
     {
         selections[i] = new Selection();
     }
     ResetSelections();
     ConvertUnityInputManager.ShowStartupWarning();
     controlSchemes.OnEnable();
     EditorApplication.playModeStateChanged += OnPlayStateChanged;
 }
Beispiel #3
0
        void HandleFileMenuOption(object arg)
        {
            switch ((int)arg)
            {
            case 0: ConvertUnityInputManager.OverwriteProjectSettings(); break;

            case 1: SaveDefaultProjectInputsXML(); break;

            case 2: CreateNewControlScheme(); break;

            case 3: CreateNewInputAction(); break;

            case 4: Duplicate(); break;

            case 5: Delete(); break;

            case 6: CopyInputAction(); break;

            case 7: PasteInputAction(); break;
            }
        }