We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76265c3 commit 87e77bfCopy full SHA for 87e77bf
StatusBar.cs
@@ -62,23 +62,8 @@ private string PrettyStats(GrassStats stats)
62
63
public override void Update(GrassStats scene, GrassStats global)
64
{
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;
+ _textOnCanvas.GetComponent<Text>().text =
+ $"{PrettyStats(scene)}\n{PrettyStats(global)}";
82
}
83
84
0 commit comments