Skip to content

Commit 87e77bf

Browse files
committed
Keep room number counts visible throughout.
1 parent 76265c3 commit 87e77bf

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

StatusBar.cs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,8 @@ private string PrettyStats(GrassStats stats)
6262

6363
public override void Update(GrassStats scene, GrassStats global)
6464
{
65-
string statusText = "";
66-
67-
if (scene == null)
68-
{
69-
statusText += $"Pls...";
70-
}
71-
else if (scene[GrassState.Cut] + scene[GrassState.ShouldBeCut] - scene.Total() == 0)
72-
{
73-
statusText += $" ";
74-
}
75-
else
76-
{
77-
statusText += $"{PrettyStats(scene)} ";
78-
}
79-
80-
statusText += $"\n{PrettyStats(global)} ";
81-
_textOnCanvas.GetComponent<Text>().text = statusText;
65+
_textOnCanvas.GetComponent<Text>().text =
66+
$"{PrettyStats(scene)}\n{PrettyStats(global)}";
8267
}
8368
}
8469

0 commit comments

Comments
 (0)