少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-22 2da6556c080e680286ce5e8f93b322bdb5a35259
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
}