static int get_content(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); GameFramework.MessageBody_GameObject obj = (GameFramework.MessageBody_GameObject)o; UnityEngine.GameObject ret = obj.content; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index content on a nil value")); } }
private void RemoveObjectFromLayer(Message _msg) { if (_msg.msgType != MessageType.UILayersAddObject) { return; } MessageBody_GameObject _body = _msg.body as MessageBody_GameObject; if (_body == null) { return; } int _layer = BuildLayer(_body.key); if (_layer < 0) { return; } if (_body.content == null) { return; } uiLayer.RemoveObjectFromLayer(_body.content, _layer); }
static int _CreateGameFramework_MessageBody_GameObject(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { string arg0 = ToLua.CheckString(L, 1); UnityEngine.GameObject arg1 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); GameFramework.MessageBody_GameObject obj = new GameFramework.MessageBody_GameObject(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GameFramework.MessageBody_GameObject.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }