private bool IsNextLineFits(string nextWord)
{
bool nextWordOk = true;
if (m_CheckNextLineFits && m_TextBounds != null && m_Text != null)
{
string oldText = m_Text.text;
m_Text.text += nextWord;
if (m_Text.renderer.bounds.min.y < (m_TextBounds.bounds.min.y + m_TextPadding.y))
{
nextWordOk = false;
}
m_Text.text = oldText;
}
return nextWordOk;
}