mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 00:32:43 +00:00
make it array lmao
This commit is contained in:
parent
d9a0daec37
commit
fcd635df4e
@ -69,7 +69,7 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
private const int CHAR_COUNT = 41;
|
private const int CHAR_COUNT = 41;
|
||||||
|
|
||||||
private bool _writingMessage;
|
private bool _writingMessage;
|
||||||
private List<string> _lines = new List<string>(new string[LINE_COUNT]);
|
private string[] _lines = new string[LINE_COUNT];
|
||||||
private ListStack<string> _messages = new(LINE_COUNT);
|
private ListStack<string> _messages = new(LINE_COUNT);
|
||||||
|
|
||||||
public void WriteMessage(string message)
|
public void WriteMessage(string message)
|
||||||
@ -91,8 +91,6 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
_messages.RemoveFirstElementAndShift();
|
_messages.RemoveFirstElementAndShift();
|
||||||
}
|
}
|
||||||
|
|
||||||
_lines = new List<string>(new string[LINE_COUNT]);
|
|
||||||
|
|
||||||
var currentLineIndex = 10;
|
var currentLineIndex = 10;
|
||||||
|
|
||||||
foreach (var item in _messages.Reverse())
|
foreach (var item in _messages.Reverse())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user