TextBubble.PositionInitialText C# (CSharp) 메소드

PositionInitialText() 개인적인 메소드

private PositionInitialText ( ) : void
리턴 void
    private void PositionInitialText()
    {
        if (m_TextBounds != null && m_Text != null)
        {
            m_Text.text = SET_POSITION_TEST_CHARACTER;

            switch (m_TextAlignment)
            {
            case eTextAlignment.TOP_LEFT:
                // Top left.
                Vector3 newPosition = m_Text.transform.position;
                newPosition.x += ((m_TextBounds.bounds.min.x + m_TextPadding.x) - m_Text.renderer.bounds.min.x);
                newPosition.y += ((m_TextBounds.bounds.max.y - m_TextPadding.y) - m_Text.renderer.bounds.max.y);
                m_Text.transform.position = newPosition;
                break;
            }

            m_Text.text = "";
        }
    }