using System; using System.Collections; using System.Collections.Generic; using Core.Utilities; using DG.Tweening; using Protobuf; using UnityEngine; namespace KTGMGemClient { public class ManagerRoot : MonoBehaviour { void Awake() { GameObject root = GameObject.Find("ManagerRoot"); if (root == null) { if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer) { GameConfig.useSDK = false; GameConfig.OpenDebug = true; } Application.targetFrameRate = 60; //Debug.Log("设置了帧数为60"); DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(200, 10); root = new GameObject("ManagerRoot"); // if (GameConfig.useSDK) // root.AddComponent(); root.AddComponent(); root.AddComponent(); root.AddComponent(); root.AddComponent(); root.AddComponent(); root.AddComponent(); root.AddComponent(); // root.AddComponent(); } //gameObject.AddComponent(); } // public void AfterRead() // { // JsonDataReader.Instance.StartRead(() => // { // StartCoroutine(CloseUpdateCanvas()); // }); // } // IEnumerator CloseUpdateCanvas() // { // yield return new WaitForSeconds(1f); // canChangeScene = true; // //gameObject.AddComponent(); // yield return new WaitForSeconds(1f); // GameObject.Find("Canvas").SetActive(false); // } // private void OnGUI() // { // // if (canChangeScene) // // { // // GUILayout.BeginArea(new Rect(5, 460, 150, 300)); // // if (GUILayout.Button("GM", GUILayout.Width(150), GUILayout.Height(70))) // // { // // //UIManager.Instance.ShowWind("GmWin"); // // } // // GUILayout.EndArea(); // // } // } } }