chenxin
2020-11-18 b8d221ed856544aec0ae376783e09f9814276722
Assets/Scripts/Manager/ManagerRoot.cs
@@ -1,6 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Core.Utilities;
using DG.Tweening;
using Protobuf;
using UnityEngine;
@@ -9,15 +11,22 @@
    public class ManagerRoot : MonoBehaviour
    {
        //private bool canChangeScene = false;
        public void Awake()
        void Awake()
        {
            gameObject.AddComponent<DoNotDestory>();
            gameObject.AddComponent<MasterSocket>();
            gameObject.AddComponent<TDAA_SDKManager>();
            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<ErrorLogOnGUIMyTools>();
            }
            //gameObject.AddComponent<JsonDataReader>();
        }