少年修仙传客户端代码仓库
hch
2019-10-31 3c35f85432d317061f09c93319108de899469d55
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;