From 2da6556c080e680286ce5e8f93b322bdb5a35259 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 22 十月 2018 16:51:46 +0800
Subject: [PATCH] 3335 更新lua库
---
Lua/LuaWindow.cs | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/Lua/LuaWindow.cs b/Lua/LuaWindow.cs
index b8c3d98..5751373 100644
--- a/Lua/LuaWindow.cs
+++ b/Lua/LuaWindow.cs
@@ -137,4 +137,21 @@
}
}
+#if UNITY_EDITOR
+ [ContextMenu("LuaReload")]
+ public void ReLoadLua()
+ {
+ LuaUtility.Do(string.Format("window.{0}", this.gameObject.name), this.gameObject.name, table);
+
+ if (onBindController != null)
+ {
+ onBindController();
+ }
+
+ if (onAddListeners != null)
+ {
+ onAddListeners();
+ }
+ }
+#endif
}
--
Gitblit v1.8.0