diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-09-04 21:52:27 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-09-04 21:52:27 +0200 |
| commit | f711d55d465bd8838dc55bde1f4a25d582a6bb6b (patch) | |
| tree | e2b5b2ac79adf23e5f2c475ce11ee1c3c6561f0b /Scripts/Game/Output.cs | |
| parent | 2f3abbb6f1141f15ef77ac27e431bc66bb0c7899 (diff) | |
| download | texty-f711d55d465bd8838dc55bde1f4a25d582a6bb6b.tar.xz texty-f711d55d465bd8838dc55bde1f4a25d582a6bb6b.zip | |
tests: adjust tests to new design
Diffstat (limited to 'Scripts/Game/Output.cs')
| -rw-r--r-- | Scripts/Game/Output.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Scripts/Game/Output.cs b/Scripts/Game/Output.cs index be943f7..abd3328 100644 --- a/Scripts/Game/Output.cs +++ b/Scripts/Game/Output.cs @@ -22,6 +22,7 @@ namespace Texty.Scripts.Game { Debug.Assert(OutputBlockScene != null, "OutputBlockScene has not been configured!"); Debug.Assert(OutputBlockScene.CanInstance(), "OutputBlockScene can not be instanced!"); + Clear(); } public void Clear() @@ -35,6 +36,7 @@ namespace Texty.Scripts.Game public void Push(string text) { + if (text.Empty()) return; var block = OutputBlockScene.Instance<OutputBlock>(); block.Content = text; LineContainer.AddChild(block); |
