static int Play(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Nova.Examples.Colorless.Scripts.InterludeController obj = (Nova.Examples.Colorless.Scripts.InterludeController)ToLua.CheckObject <Nova.Examples.Colorless.Scripts.InterludeController>(L, 1); obj.Play(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_BackgroundSprite(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.Examples.Colorless.Scripts.InterludeController obj = (Nova.Examples.Colorless.Scripts.InterludeController)o; UnityEngine.Sprite ret = obj.BackgroundSprite; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index BackgroundSprite on a nil value")); } }
static int get_holdingDuration(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.Examples.Colorless.Scripts.InterludeController obj = (Nova.Examples.Colorless.Scripts.InterludeController)o; float ret = obj.holdingDuration; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index holdingDuration on a nil value")); } }
static int get_chapterSpritePath(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.Examples.Colorless.Scripts.InterludeController obj = (Nova.Examples.Colorless.Scripts.InterludeController)o; string ret = obj.chapterSpritePath; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index chapterSpritePath on a nil value")); } }
static int set_BackgroundSprite(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.Examples.Colorless.Scripts.InterludeController obj = (Nova.Examples.Colorless.Scripts.InterludeController)o; UnityEngine.Sprite arg0 = (UnityEngine.Sprite)ToLua.CheckObject(L, 2, typeof(UnityEngine.Sprite)); obj.BackgroundSprite = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index BackgroundSprite on a nil value")); } }
static int set_holdingDuration(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.Examples.Colorless.Scripts.InterludeController obj = (Nova.Examples.Colorless.Scripts.InterludeController)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.holdingDuration = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index holdingDuration on a nil value")); } }
static int set_chapterSpritePath(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.Examples.Colorless.Scripts.InterludeController obj = (Nova.Examples.Colorless.Scripts.InterludeController)o; string arg0 = ToLua.CheckString(L, 2); obj.chapterSpritePath = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index chapterSpritePath on a nil value")); } }