Skip to content

Commit

Permalink
fix: bug in tanks sample (#575)
Browse files Browse the repository at this point in the history
Small bug in the Tanks sample that prevents local player from clearing the ready menu if the network players are already ready.
  • Loading branch information
Markario committed Feb 20, 2021
1 parent 716015b commit d82efea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Mirage/Samples~/Tanks/Scripts/TankGameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ void CheckPlayersNotInList()

bool GetAllReadyState()
{
if (!LocalPlayer || !LocalPlayer.isReady) return false;

bool AllReady = true;
foreach (Tank tank in players)
{
Expand Down

0 comments on commit d82efea

Please sign in to comment.