TextBubble.IsNextWordFits C# (CSharp) 메소드

IsNextWordFits() 개인적인 메소드

private IsNextWordFits ( string nextWord ) : bool
nextWord string
리턴 bool
    private bool IsNextWordFits(string nextWord)
    {
        bool nextWordOk = true;
        if (m_TextBounds != null && m_Text != null)
        {
            string oldText = m_Text.text;
            m_Text.text += nextWord;
            if (m_Text.renderer.bounds.max.x > (m_TextBounds.bounds.max.x - m_TextPadding.x))
            {
                nextWordOk = false;
            }

            m_Text.text = oldText;
        }

        return nextWordOk;
    }