From f2910d750651339c6f9d2cbd67e357cc02e8f301 Mon Sep 17 00:00:00 2001 From: Marro64 Date: Sun, 18 Jan 2026 17:12:25 +0100 Subject: [PATCH] Fix --- Assets/Scenes/PacMan.unity | 2 +- Assets/Scripts/ByteUtils.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scenes/PacMan.unity b/Assets/Scenes/PacMan.unity index 957a588..732a6e8 100644 --- a/Assets/Scenes/PacMan.unity +++ b/Assets/Scenes/PacMan.unity @@ -54317,8 +54317,8 @@ MonoBehaviour: DynamicPrefabs: [] DynamicMaterials: - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 2100000, guid: fc67956adbc95584ba3ae3b18d1e430d, type: 2} - {fileID: 2541243872366204002, guid: 7168d13094fcae94b81e672d1f4ab73f, type: 2} + - {fileID: 2100000, guid: fc67956adbc95584ba3ae3b18d1e430d, type: 2} - {fileID: 10758, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 2100000, guid: a3869014ba4893d409f150224856180a, type: 2} diff --git a/Assets/Scripts/ByteUtils.cs b/Assets/Scripts/ByteUtils.cs index c648d82..f591955 100644 --- a/Assets/Scripts/ByteUtils.cs +++ b/Assets/Scripts/ByteUtils.cs @@ -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); }