public bool MoveNext() { state.LuaRawGetI(-1, index); current = state.ToVariant(-1); state.LuaPop(1); ++index; return(current == null ? false : true); }
public void UF_OnUpdate() { if (m_IsInited) { //协议更新 LuaNetwork.UF_Update(lfHandleNetMsg); if (m_Luastate.LuaUpdate(GTime.DeltaTime, GTime.UnscaleDeltaTime) != 0) { string error = m_Luastate.LuaToString(-1); m_Luastate.LuaPop(2); throw new LuaException(error, LuaException.GetLastError()); } m_Luastate.LuaPop(1); m_Luastate.Collect(); UF_UpdateMouseInput(); } }
public bool MoveNext() { if (state.LuaNext(-2)) { current = new DictionaryEntry(); current.Key = state.ToVariant(-2); current.Value = state.ToVariant(-1); state.LuaPop(1); return(true); } else { current = new DictionaryEntry(); return(false); } }