public void AddCard(Card card)
 {
     Card[] tempcards = null;
     if (m_Cards != null)
     {
         tempcards = m_Cards;
         m_Cards = new Card[m_Cards.Length + 1];
         for (int i = 0; i < tempcards.Length; i++)
             m_Cards[i] = tempcards[i];
     }
     else
         m_Cards = new Card[1];
     m_Cards[m_Cards.Length - 1] = card;
 }
 private void Init()
 {
     if (m_Cards == null)
     {
         m_Cards = new Card[52];
         for (int i = 0; i < 52; i++)
             m_Cards[i] = new Card(i);
     }
     Shuffle();
 }