Beispiel #1
0
 void SetLastColor(ref HUDCharInfo pNode)
 {
     if (m_colors != null && m_colors.size > 0)
     {
         Color32 c = m_colors[m_colors.size - 1];
         pNode.bCustomColor = true;
         pNode.CustomColor  = c;
     }
     else
     {
         pNode.bCustomColor = false;
     }
 }
Beispiel #2
0
    void  AutoGrow()
    {
        int nSize = m_Sprites.Length * 2;

        HUDCharInfo[] Sprties = new HUDCharInfo[nSize];
        char[]        Chars   = new char[nSize];
        for (int i = 0; i < m_SpriteCount; ++i)
        {
            Sprties[i] = m_Sprites[i];
        }
        for (int i = 0; i < m_nCharCount; ++i)
        {
            Chars[i] = m_ValidChars[i];
        }
        m_Sprites    = Sprties;
        m_ValidChars = Chars;
    }