| | |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using Core.Utilities; |
| | | using DG.Tweening; |
| | | using Protobuf; |
| | | using UnityEngine; |
| | | |
| | |
| | | { |
| | | public class ManagerRoot : MonoBehaviour |
| | | { |
| | | |
| | | //private bool canChangeScene = false; |
| | | |
| | | public void Awake() |
| | | void Awake() |
| | | { |
| | | gameObject.AddComponent<DoNotDestory>(); |
| | | gameObject.AddComponent<MasterSocket>(); |
| | | gameObject.AddComponent<GA_SDK_Manager>(); |
| | | GameObject root = GameObject.Find("ManagerRoot"); |
| | | if (root == null) |
| | | { |
| | | DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(200, 10); |
| | | |
| | | //gameObject.AddComponent<ErrorLogOnGUIMyTools>(); |
| | | 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() |