diff --git a/Assets/Scripts/CollisionManager.cs b/Assets/Scripts/CollisionManager.cs index fd511d5..2150b91 100644 --- a/Assets/Scripts/CollisionManager.cs +++ b/Assets/Scripts/CollisionManager.cs @@ -217,7 +217,7 @@ namespace Marro.PacManUdon { var active = (syncedPelletsCollected[i/8] & (byte)(1 << i%8)) == 0; pellets[i].gameObject.SetActive(active); - pelletMap[pelletIndices[i]] = i; + pelletMap[pelletIndices[i]] = active ? i : (byte)PacManConsumableType.None; } } #endregion diff --git a/Assets/Scripts/NetworkManager.cs b/Assets/Scripts/NetworkManager.cs index 616a393..21c890d 100644 --- a/Assets/Scripts/NetworkManager.cs +++ b/Assets/Scripts/NetworkManager.cs @@ -884,11 +884,6 @@ namespace Marro.PacManUdon if (subscribers != null) { - foreach (var obj in subscribers) - { - obj.SyncedUpdate(); - } - foreach (var obj in subscribers) { var success = obj.WriteSyncedData(@event, ref index, eventType);