void OnEnable() { m_cur = target as SimpleHandle; m_ctrlPlay = false; m_havePlay = false; if (Application.isEditor && !EditorApplication.isPlaying) { EditorApplication.update = m_cur.LateUpdate; } }
static int OnEnd(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UI.SimpleHandle obj = (UI.SimpleHandle)ToLua.CheckObject(L, 1, typeof(UI.SimpleHandle)); obj.OnEnd(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_m_onEnd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.SimpleHandle obj = (UI.SimpleHandle)o; UnityEngine.Events.UnityEvent arg0 = (UnityEngine.Events.UnityEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Events.UnityEvent)); obj.m_onEnd = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_onEnd on a nil value" : e.Message)); } }
static int set_m_resetOnEnable(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.SimpleHandle obj = (UI.SimpleHandle)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.m_resetOnEnable = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_resetOnEnable on a nil value" : e.Message)); } }
static int get_CurTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.SimpleHandle obj = (UI.SimpleHandle)o; float ret = obj.CurTime; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurTime on a nil value" : e.Message)); } }
static int get_IsPlaying(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.SimpleHandle obj = (UI.SimpleHandle)o; bool ret = obj.IsPlaying; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index IsPlaying on a nil value" : e.Message)); } }
static int get_m_onEnd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.SimpleHandle obj = (UI.SimpleHandle)o; UnityEngine.Events.UnityEvent ret = obj.m_onEnd; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_onEnd on a nil value" : e.Message)); } }