void OnDisable() { if (Application.isEditor && !EditorApplication.isPlaying) { if (m_cur != null && m_havePlay) { m_cur.ResetStop(); } EditorApplication.update = null; } }
static int ResetStop(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UI.SimpleHandle obj = (UI.SimpleHandle)ToLua.CheckObject(L, 1, typeof(UI.SimpleHandle)); obj.ResetStop(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }