예제 #1
0
파일: Game.cs 프로젝트: L00G/2048Game
 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;
         }
     }
 }