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)
|
{
|
DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(200, 10);
|
|
root = new GameObject("ManagerRoot");
|
root.AddComponent<DoNotDestory>();
|
root.AddComponent<MasterSocket>();
|
root.AddComponent<TDAA_SDKManager>();
|
root.AddComponent<AudioSourceManager>();
|
root.AddComponent<JsonDataReader>();
|
root.AddComponent<JsonDataInit>();
|
root.AddComponent<ErrorLogOnGUIMyTools>();
|
}
|
|
//gameObject.AddComponent<JsonDataReader>();
|
}
|
|
// public void AfterRead()
|
// {
|
// JsonDataReader.Instance.StartRead(() =>
|
// {
|
// StartCoroutine(CloseUpdateCanvas());
|
// });
|
|
// }
|
|
// IEnumerator CloseUpdateCanvas()
|
// {
|
// yield return new WaitForSeconds(1f);
|
// canChangeScene = true;
|
// //gameObject.AddComponent<GameEnter>();
|
// 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();
|
// // }
|
// }
|
}
|
}
|