This commit is contained in:
2026-06-11 12:05:12 +02:00
parent e7968a5753
commit e75452b145
4 changed files with 36 additions and 8 deletions

View File

@@ -423,16 +423,16 @@ namespace Marro.PacManUdon
if (eventType == NetworkEventType.TimeSequenceSync)
{
var currentlyInTimeSequence = data.ReadBool(ref index);
if (!currentlyInTimeSequence)
{
TimeSequenceTryEndCurrent();
}
else
if (currentlyInTimeSequence)
{
var currentTimeSequence = (PacManTimeSequence)data.ReadByte(ref index);
var timeSequenceSecondsPassed = data.ReadFloat(ref index);
TimeSequenceSyncWithRemote(currentTimeSequence, timeSequenceSecondsPassed);
}
else
{
TimeSequenceTryEndCurrent();
}
}
//SetGameState((PacManGameState)data[offset++]);