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