Lua/LuaGameNetSystem.cs
@@ -132,7 +132,7 @@ GameNetSystem.Instance.SendInfo(sendBytes.ToArray()); } int readIndex = 0; int readIndex = 2; public uint TransUintBytes(byte[] value, LuaGameNetSystem.NetDataType type) { var length = GetBytesLength(type); @@ -234,7 +234,6 @@ public uint[] TransVShortsBytes(byte[] value, LuaGameNetSystem.NetDataType type, int length) { var step = GetBytesLength(type); var array = new uint[length]; for (var i = 0; i < length; i++) { @@ -256,8 +255,6 @@ Debug.LogError("请指定正确的类型。"); break; } readIndex += step; } return array;