Skip to content

Commit

Permalink
Keep room number counts visible throughout.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjohncs committed Mar 8, 2021
1 parent 76265c3 commit 87e77bf
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions StatusBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,8 @@ private string PrettyStats(GrassStats stats)

public override void Update(GrassStats scene, GrassStats global)
{
string statusText = "";

if (scene == null)
{
statusText += $"Pls...";
}
else if (scene[GrassState.Cut] + scene[GrassState.ShouldBeCut] - scene.Total() == 0)
{
statusText += $" ";
}
else
{
statusText += $"{PrettyStats(scene)} ";
}

statusText += $"\n{PrettyStats(global)} ";
_textOnCanvas.GetComponent<Text>().text = statusText;
_textOnCanvas.GetComponent<Text>().text =
$"{PrettyStats(scene)}\n{PrettyStats(global)}";
}
}

Expand Down

0 comments on commit 87e77bf

Please sign in to comment.