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; } }
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 }