From 54406f66c4c1741b54052e18430b40e052551d1b Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 29 十月 2018 21:32:30 +0800
Subject: [PATCH] 4340 【前端】支持xlua方便IOS提审
---
Lua/LuaWindow.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lua/LuaWindow.cs b/Lua/LuaWindow.cs
index 5751373..f01c4a2 100644
--- a/Lua/LuaWindow.cs
+++ b/Lua/LuaWindow.cs
@@ -9,6 +9,9 @@
[LuaCallCSharp]
public class LuaWindow : Window
{
+
+ public string filePath = "";
+
Action luaOnDestroy;
Action onBindController;
@@ -30,7 +33,7 @@
table.SetMetaTable(meta);
meta.Dispose();
- LuaUtility.Do(string.Format("window.{0}", this.gameObject.name), this.gameObject.name, table);
+ LuaUtility.Do(filePath, this.gameObject.name, table);
table.Get("BindController", out onBindController);
table.Get("AddListeners", out onAddListeners);
--
Gitblit v1.8.0