Replaced fullsyncforced with reset

This commit is contained in:
2026-06-24 15:12:22 +02:00
parent 2f18464e71
commit 8255eb8b99
4 changed files with 428 additions and 337 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ public class NetworkManagerTester : UdonSharpBehaviour
continue;
}
//Debug.Log($"{nameof(NetworkManagerTester)} Requested event with type {eventType}.");
Debug.Log($"{nameof(NetworkManagerTester)} Requested event with type {eventType}.");
target.RequestEventReceived(eventType);
}
+2 -4
View File
@@ -130,8 +130,7 @@ public class TestBall : SyncedObject
public override void CollectSyncedData(byte[] data, ref int index, NetworkEventType eventType)
{
if (eventType == NetworkEventType.FullSync
|| eventType == NetworkEventType.FullSyncForced)
if (eventType == NetworkEventType.FullSync)
{
Debug.Log($"({nameof(TestBall)}) Sending sync data at progress {GetProgress()} and amountUp {amountUp}.");
data.Append(amountUp, ref index);
@@ -141,8 +140,7 @@ public class TestBall : SyncedObject
public override bool WriteSyncedData(byte[] data, ref int index, NetworkEventType eventType)
{
if (eventType == NetworkEventType.FullSync
|| eventType == NetworkEventType.FullSyncForced)
if (eventType == NetworkEventType.FullSync)
{
amountUp = data.ReadFloat(ref index);
SetProgress(data.ReadFloat(ref index));