make it array lmao

This commit is contained in:
_nebula 2023-05-08 00:26:05 +01:00
parent d9a0daec37
commit fcd635df4e

View File

@ -69,7 +69,7 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart
private const int CHAR_COUNT = 41;
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);
public void WriteMessage(string message)
@ -91,8 +91,6 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart
_messages.RemoveFirstElementAndShift();
}
_lines = new List<string>(new string[LINE_COUNT]);
var currentLineIndex = 10;
foreach (var item in _messages.Reverse())