예제 #1
0
        public static void Init()
        {
            if (InputSystem.TKeyboard != null || (ReflectionUtility.LoadModule("Unity.InputSystem") && InputSystem.TKeyboard != null))
            {
                m_inputModule = new InputSystem();
                CurrentType   = InputType.InputSystem;
            }
            else if (LegacyInput.TInput != null || (ReflectionUtility.LoadModule("UnityEngine.InputLegacyModule") && LegacyInput.TInput != null))
            {
                m_inputModule = new LegacyInput();
                CurrentType   = InputType.Legacy;
            }

            if (m_inputModule == null)
            {
                ExplorerCore.LogWarning("Could not find any Input Module Type!");
                m_inputModule = new NoInput();
                CurrentType   = InputType.None;
            }

            CursorUnlocker.Init();
        }
예제 #2
0
        public static void Init()
        {
            InitHandler();

            CursorUnlocker.Init();
        }