private void SpawnCharacterCell(CharCell character) { GameObject charCell = Instantiate(charCellPrefab, transform); Image charImage = charCell.transform.Find("Image").GetComponent <Image>(); TextMeshProUGUI charText; }
public void Output(int x, int y, string text, bool invert = false) { for (var i = 0; i < text.Length; i++) { _textBuffer[x + i, y] = new CharCell( text[i], invert ? CharCellFlag.Invert : CharCellFlag.None); } }
public void Clear() { for (var y = 0; y < _textBuffer.Height; y++) { for (var x = 0; x < _textBuffer.Width; x++) { _textBuffer[x, y] = new CharCell(); } } }