wangguan
2020-12-16 fe59d1a97e80284315bcdfa18a49059b38dfd137
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -67,13 +67,20 @@
        if (root == null)
        {
            root = new GameObject("ManagerRoot");
            root.AddComponent<DoNotDestory>();
            root.AddComponent<MasterSocket>();
            root.AddComponent<TDAA_SDKManager>();
            root.AddComponent<AudioSourceManager>();
            root.AddComponent<JsonDataReader>();
            root.AddComponent<JsonDataInit>();
             if (Application.platform == RuntimePlatform.WindowsEditor ||
            Application.platform == RuntimePlatform.WindowsPlayer)
                {
                    GameConfig.useSDK = false;
                }
                root = new GameObject("ManagerRoot");
                root.AddComponent<DoNotDestory>();
                root.AddComponent<MasterSocket>();
                root.AddComponent<TDAA_SDKManager>();
                root.AddComponent<AudioSourceManager>();
                root.AddComponent<JsonDataReader>();
                root.AddComponent<JsonDataInit>();
        }
        firstStart = true;
        //EventCenter.Ins.Add((int)KTGMGemClient.EventType.JsonDataReadDone, JsonDataReadDone);