예제 #1
0
 //For debugging purposes, draws the extents of all words in a given dynamic string.
 private void DrawWords(float duration, Color color)
 {
     foreach (DynamicTextData.WordData data in _textData.words)
     {
         DebugTools.DrawRectangle(
             (Vector2)_textData.containerTransform.position + data.position,
             data.size.x / 2,
             data.size.y / 2,
             color,
             duration
             );
     }
 }
예제 #2
0
 //For debugging purposes, draws the extents of all characters in a given dynamic string.
 private void DrawCharacters(float duration, Color color)
 {
     foreach (DynamicTextData.CharacterData data in _textData.characters)
     {
         DebugTools.DrawRectangle(
             (Vector2)_textData.containerTransform.position + data.localPos,
             data.worldSize.x / 2,
             data.worldSize.y / 2,
             color,
             duration
             );
     }
 }