static int OnFinish(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FXTypeWriter obj = (FXTypeWriter)ToLua.CheckObject(L, 1, typeof(FXTypeWriter)); obj.OnFinish(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_playOnStart(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; bool ret = obj.playOnStart; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index playOnStart on a nil value" : e.Message)); } }
static int get_mode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; FXTypeWriter.Mode ret = obj.mode; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mode on a nil value" : e.Message)); } }
static int set_delay(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.delay = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delay on a nil value" : e.Message)); } }
static int set_myEvent(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; UnityEngine.Events.UnityEvent arg0 = (UnityEngine.Events.UnityEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Events.UnityEvent)); obj.myEvent = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index myEvent on a nil value" : e.Message)); } }
static int set_charsPerSecond(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.charsPerSecond = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index charsPerSecond on a nil value" : e.Message)); } }
static int set_playOnStart(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.playOnStart = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index playOnStart on a nil value" : e.Message)); } }
static int set_mode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; FXTypeWriter.Mode arg0 = (FXTypeWriter.Mode)ToLua.CheckObject(L, 2, typeof(FXTypeWriter.Mode)); obj.mode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mode on a nil value" : e.Message)); } }
static int get_delay(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; float ret = obj.delay; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index delay on a nil value" : e.Message)); } }
static int get_totalTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; int ret = obj.totalTime; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index totalTime on a nil value" : e.Message)); } }
static int get_myEvent(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FXTypeWriter obj = (FXTypeWriter)o; UnityEngine.Events.UnityEvent ret = obj.myEvent; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index myEvent on a nil value" : e.Message)); } }
void Awake() { _TypeWriter = GetComponent <FXTypeWriter>(); _Text = GetComponent <UIText>(); }