Fixed bug
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -171,7 +171,7 @@ namespace Marro.PacManUdon
|
||||
SetDirection(direction * -1);
|
||||
Debug.Log($"{gameObject} turned around to direction {GetDirection()}");
|
||||
turnAroundSoon = false;
|
||||
return GridMoverTools.PositionToGrid(nextPosition);
|
||||
return nextPosition;
|
||||
}
|
||||
|
||||
if (kinematic)
|
||||
|
||||
@@ -194,6 +194,7 @@ namespace Marro.PacManUdon
|
||||
|
||||
// Debug.Log($"{gameObject} GhostCaughtQueue with ghost {ghost}");
|
||||
//networkManager.SendEventSoon(NetworkEventType.GhostUpdate);
|
||||
|
||||
ghostScaredQueue.Add(ghost);
|
||||
GhostCaughtExecute(ghost);
|
||||
}
|
||||
|
||||
@@ -256,6 +256,11 @@ namespace Marro.PacManUdon
|
||||
SyncedDeltaTime = Time.fixedDeltaTime;
|
||||
nextUpdateTime = SyncedTime;
|
||||
|
||||
if (!Synced)
|
||||
{
|
||||
RequestEvent(NetworkEventType.FullSync); // See if we can sync up
|
||||
}
|
||||
|
||||
Ready = true;
|
||||
|
||||
Debug.Log($"({nameof(PacManUdon)} {nameof(NetworkManager)}) Initialized, time offset: {offsetTime}");
|
||||
|
||||
Reference in New Issue
Block a user