using System; using System.Collections; using System.Collections.Generic; using Protobuf; using UnityEngine; namespace KTGMGemClient { public class ManagerRoot : MonoBehaviour { //private bool canChangeScene = false; public void Awake() { gameObject.AddComponent(); gameObject.AddComponent(); gameObject.AddComponent(); gameObject.AddComponent(); //gameObject.AddComponent(); //gameObject.AddComponent(); } void Start() { AudioSourceManager.Ins.Play(AudioEnum.BGM1); } // 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(); // // } // } } }