示例#1
0
        static void DisableRuntime()
        {
            DebugManager debugManager = DebugManager.instance;

            debugManager.displayRuntimeUI           = false;
            debugManager.displayPersistentRuntimeUI = false;

            if (s_Instance != null)
            {
                CoreUtils.Destroy(s_Instance.gameObject);
                s_Instance = null;
            }
        }
示例#2
0
        static void EnableRuntime()
        {
            if (s_Instance != null)
            {
                return;
            }

            var go = new GameObject {
                name = "[Debug Updater]"
            };

            s_Instance = go.AddComponent <DebugUpdater>();
            s_Instance.m_Orientation = Screen.orientation;

            DontDestroyOnLoad(go);

            DebugManager.instance.EnableInputActions();

#if USE_INPUT_SYSTEM
            EnhancedTouchSupport.Enable();
#endif
        }