public static void Init() { GameConsolePanelSettingConfig config = GameConsolePanelSettingConfig.GetCofig(); if (config.autoBoot) { ConsoleToolStart(); } else { Debug.Log("ConsoleBootManager.init"); int state = PlayerPrefs.GetInt(PF_WhenFirstCustomBootThenAutoBoot, 0); if (state == 1) { ConsoleToolStart(); return; } ConsoleBootManager.Init(config, () => { if (config.whenFirstCustomBootThenAutoBoot) { PlayerPrefs.SetInt(PF_WhenFirstCustomBootThenAutoBoot, 1); } ConsoleToolStart(); }); } }
//Vector2 v2; //private void OnGUI() //{ // v2 = GUILayout.BeginScrollView(v2); // LogService service = LitNetServer.ServiceManager.Get<LogService>(); // foreach (var item in service.GetLogDatas()) // { // GUILayout.Label(item.ToString()); // } // GUILayout.EndScrollView(); //} private void Update() { float deltaTime = Time.unscaledDeltaTime; LitNetServer.Update(deltaTime); ConsoleBootManager.OnUpdate(); //if (Input.GetKeyDown(KeyCode.L)) //{ // Debug.Log("------log----"); //} }
private void OnGUI() { ConsoleBootManager.OnGUI(); }