Skip to content

Commit d82efea

Browse files
authored
fix: bug in tanks sample (MirageNet#575)
Small bug in the Tanks sample that prevents local player from clearing the ready menu if the network players are already ready.
1 parent 716015b commit d82efea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Mirage/Samples~/Tanks/Scripts/TankGameManager.cs

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ void CheckPlayersNotInList()
9797

9898
bool GetAllReadyState()
9999
{
100+
if (!LocalPlayer || !LocalPlayer.isReady) return false;
101+
100102
bool AllReady = true;
101103
foreach (Tank tank in players)
102104
{

0 commit comments

Comments
 (0)