Beispiel #1
0
        public static void Init()
        {
            UnityRemoteConsoleSettingData config = UnityRemoteConsoleSettingData.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();
                });
            }
        }
Beispiel #2
0
        private void Update()
        {
            float deltaTime = Time.unscaledDeltaTime;

            NetServer.Update(deltaTime);

            ConsoleBootManager.OnUpdate();
        }
Beispiel #3
0
        //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----");
            //}
        }
Beispiel #4
0
 private void OnGUI()
 {
     ConsoleBootManager.OnGUI();
 }