static int SetSprite(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); UISpriteChange obj = LuaScriptMgr.GetUnityObject <UISpriteChange>(L, 1); UISpriteState arg0 = LuaScriptMgr.GetNetObject <UISpriteState>(L, 2); obj.SetSprite(arg0); return(0); }
static int get_PressSprite(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); UISpriteChange obj = (UISpriteChange)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name PressSprite"); } else { LuaDLL.luaL_error(L, "attempt to index PressSprite on a nil value"); } } LuaScriptMgr.Push(L, obj.PressSprite); return(1); }
static int set_DisableSprite(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); UISpriteChange obj = (UISpriteChange)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name DisableSprite"); } else { LuaDLL.luaL_error(L, "attempt to index DisableSprite on a nil value"); } } obj.DisableSprite = LuaScriptMgr.GetUnityObject <Sprite>(L, 3); return(0); }