static int IsInvoking(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 1) { FSMBase obj = LuaScriptMgr.GetNetObject <FSMBase>(L, 1); bool o = obj.IsInvoking(); LuaScriptMgr.Push(L, o); return(1); } else if (count == 2) { FSMBase obj = LuaScriptMgr.GetNetObject <FSMBase>(L, 1); string arg0 = LuaScriptMgr.GetLuaString(L, 2); bool o = obj.IsInvoking(arg0); LuaScriptMgr.Push(L, o); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: FSMBase.IsInvoking"); } return(0); }