static int cheakPlay(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); EffectRenderObj obj = (EffectRenderObj)ToLua.CheckObject(L, 1, typeof(EffectRenderObj)); bool o = obj.cheakPlay(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }