| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using Core.Utilities; |
| | | using DG.Tweening; |
| | | using Protobuf; |
| | | using UnityEngine; |
| | | |
| | |
| | | { |
| | | public class ManagerRoot : MonoBehaviour |
| | | { |
| | | |
| | | void Awake() |
| | | { |
| | | GameObject root = GameObject.Find("ManagerRoot"); |
| | | if (root == null) |
| | | { |
| | | GameConfig.useSDK = SDKConfig.sdkChannel == SDKChannel.KTGM; |
| | | |
| | | if (Application.platform == RuntimePlatform.WindowsEditor || |
| | | Application.platform == RuntimePlatform.WindowsPlayer) |
| | | { |
| | | GameConfig.useSDK = false; |
| | | GameConfig.OpenDebug = true; |
| | | SDKConfig.sdkChannel = SDKChannel.KTGM; |
| | | } |
| | | |
| | | //PlayerPrefs.DeleteAll(); |
| | | Application.targetFrameRate = 60; |
| | | //Debug.Log("设置了帧数为60"); |
| | | DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(200, 10); |
| | | |
| | | root = new GameObject("ManagerRoot"); |
| | | // if (GameConfig.useSDK) |
| | | // root.AddComponent<SDKCallBack>(); |
| | | root.AddComponent<DoNotDestory>(); |
| | | root.AddComponent<MasterSocket>(); |
| | | root.AddComponent<TDAA_SDKManager>(); |
| | | root.AddComponent<AudioSourceManager>(); |
| | | |
| | | root.AddComponent<ErrorLogOnGUIMyTools>(); |
| | | root.AddComponent<JsonDataReader>(); |
| | | root.AddComponent<JsonDataInit>(); |
| | | root.AddComponent<LanguageManager>(); |
| | | // root.AddComponent<ErrorLogOnGUIMyTools>(); |
| | | } |
| | | |
| | | //gameObject.AddComponent<JsonDataReader>(); |
| | | |
| | | } |
| | | |
| | | // public void AfterRead() |