Exemplo n.º 1
0
 public void Update(Button key)
 {
     if (m_play)
     {
         int score = m_board.Update(key);
         if (score == -1)
         {
             m_play = false;
         }
         else
         {
             if (score == 2048)
             {
                 m_play  = false;
                 m_clear = true;
             }
             m_score += score;
         }
         if (m_bestSocre < m_score)
         {
             m_bestSocre = m_score;
         }
     }
 }