/// <summary> /// 执行Lua方法 /// </summary> public static object[] CallMethod(string module, string func, params object[] args) { BaseLuaManager luaMgr = AppFacade.Instance.GetManager <BaseLuaManager>(); if (luaMgr == null) { return(null); } return(luaMgr.CallFunction(module + "." + func, args)); }
void OnGUI() { if (!string.IsNullOrEmpty(Function) && GUILayout.Button("Call Function")) { mLuaMgr.CallFunction(Function); } if (onGUIFunc != null) { onGUIFunc.Call(); } }