Beispiel #1
0
    private void SpawnCharacterCell(CharCell character)
    {
        GameObject charCell = Instantiate(charCellPrefab, transform);

        Image           charImage = charCell.transform.Find("Image").GetComponent <Image>();
        TextMeshProUGUI charText;
    }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 public void Clear()
 {
     for (var y = 0; y < _textBuffer.Height; y++)
     {
         for (var x = 0; x < _textBuffer.Width; x++)
         {
             _textBuffer[x, y] = new CharCell();
         }
     }
 }