//----------------------------------------------- /// <summary> /// 执行Lua方法-无参数 /// </summary> protected object[] CallMethod(string func) { if (nluaMgr == null) { return(null); } string funcName = name + "." + func; funcName = funcName.Replace("(Clone)", ""); NLua.LuaFunction luafunc = nmgr.GetFunction(funcName); if (luafunc == null) { return(null); } else { return(luafunc.Call(funcName)); } }