Fix
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Marro.PacManUdon
|
||||
{
|
||||
public static void Append(this byte[] target, byte[] value, ref int index)
|
||||
{
|
||||
Debug.Log($"ByteUtils Append value.Length: {value.Length}, array.Length : {target.Length}, index: {index}");
|
||||
Debug.Log($"ByteUtils Append {nameof(value)}.Length: {value.Length}, {nameof(target)}.Length : {target.Length}, {nameof(index)}: {index}");
|
||||
Array.Copy(value, 0, target, index, value.Length);
|
||||
index += value.Length;
|
||||
}
|
||||
@@ -50,7 +50,7 @@ namespace Marro.PacManUdon
|
||||
|
||||
public static void Append(this byte[] target, Vector2 value, ref int index)
|
||||
{
|
||||
target.Append(target, ref index);
|
||||
target.Append(value.x, ref index);
|
||||
target.Append(value.y, ref index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user