From 45faee0adf3b5bc2ac051c2a0e08bb4ecf738aac Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Thu, 17 Dec 2020 14:31:17 +0800 Subject: [PATCH] Merge commit 'fe59d1a97e80284315bcdfa18a49059b38dfd137' --- Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs b/Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs index 988f459..a4ee0d5 100644 --- a/Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs +++ b/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); -- Gitblit v1.9.1