Пример #1
0
    static public DHTextManager GetInstance()
    {
        if (m_Inst == null)
        {
            m_Inst = new DHTextManager();
        }

        return(m_Inst);
    }
Пример #2
0
 // Use this for initialization
 protected override void Start()
 {
     if (textIndex.CompareTo(String.Empty) != 0 && text.CompareTo("New Text") != 0)
     {
         text = DHTextManager.GetInstance().GetTextWithIndex(textIndex);
         // DEBUG...
         //horizontalOverflow = HorizontalWrapMode.Overflow;
         //verticalOverflow = VerticalWrapMode.Overflow;
     }
 }