From 452c75675679c44cc39b04bdb7d330d7c5c14d5c Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Tue, 29 Dec 2020 10:48:06 +0800
Subject: [PATCH] 增加多SDK支持。常规使用SDKChannel.KTGM 偶哈游的是空SDK

---
 Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs b/Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
index 1252d66..30dc998 100644
--- a/Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
+++ b/Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -66,8 +66,6 @@
         if (Application.platform == RuntimePlatform.WindowsEditor ||
          Application.platform == RuntimePlatform.WindowsPlayer)
         {
-            GameConfig.useSDK = false;
-            GameConfig.OpenDebug = true;
             GMBtn.SetActive(true);
         }
         else
@@ -79,7 +77,15 @@
 
         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;
+            }
             root = new GameObject("ManagerRoot");
 
             root.AddComponent<DoNotDestory>();

--
Gitblit v1.9.1