少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-29 54406f66c4c1741b54052e18430b40e052551d1b
4340 【前端】支持xlua方便IOS提审
3个文件已修改
7 ■■■■ 已修改文件
Lua/LuaUtility.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/LuaWindow.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI/Core/ButtonEx.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/LuaUtility.cs
@@ -32,7 +32,6 @@
    public void Init()
    {
        Do("global.util");
        Do("custom.ButtonUtil");
        Do("global.logex");
        Do("global.functions");
        Do("global.object");
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);
UI/Core/ButtonEx.cs
@@ -3,6 +3,7 @@
using UnityEngine.EventSystems;
using System;
[XLua.LuaCallCSharp]
public class ButtonEx : Button
{