Replaced fullsyncforced with reset
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user