From 45c82c513c67130bb52cb5e7f2f10c957e463cf1 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期六, 27 十月 2018 11:36:55 +0800
Subject: [PATCH] 4340 【前端】支持xlua方便IOS提审

---
 System/MainInterfacePanel/PKModel.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/System/MainInterfacePanel/PKModel.cs b/System/MainInterfacePanel/PKModel.cs
index 431fd24..36640f4 100644
--- a/System/MainInterfacePanel/PKModel.cs
+++ b/System/MainInterfacePanel/PKModel.cs
@@ -12,7 +12,8 @@
 namespace Snxxz.UI {
     
   
-    public class PKModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize
+    [XLua.LuaCallCSharp]
+	public class PKModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize
     {
         PlayerBuffDatas m_BuffModel;
         PlayerBuffDatas Buffmodel
@@ -44,7 +45,7 @@
         private void onStageLoadFinish()
         {
             int MapID = PlayerDatas.Instance.baseData.MapID;
-            var config = ConfigManager.Instance.GetTemplate<MapConfig>(MapID);
+            var config = Config.Instance.Get<MapConfig>(MapID);
 
             if (config!=null)
             {
@@ -64,7 +65,7 @@
             }
             else
             {
-                DesignDebug.LogError("娌℃湁鑾峰彇鍒板湴鍥捐〃涓搷搴旂殑鍦板浘ID"+ MapID);
+                DebugEx.LogError("娌℃湁鑾峰彇鍒板湴鍥捐〃涓搷搴旂殑鍦板浘ID"+ MapID);
             }
                
         }

--
Gitblit v1.8.0