Exemplo n.º 1
0
 public void OnPointerDown(PointerEventData peData)
 {
     if (ec.GetTimer() > 0 && ec.GetBugCount() < ec.maxMineCount)
     {
         if (peData.pointerId == -1)
         {
             OnLeftMouseButtonClicked();
         }
         else if (peData.pointerId == -2)
         {
             OnRightMouseButtonClicked();
         }
         if (GridControl.IsFinished())
         {
             EventControl.isGameEnd = true;
         }
     }
 }