示例#1
0
 private void OnRightMouseButtonClicked()
 {
     if (sr.sprite != mistakeTexture)
     {
         if (!marked)
         {
             if (mine)
             {
                 ec.BugCountUp();
                 ec.ClickedBugCountUp();
             }
             sr.sprite = markTexture;
             marked    = true;
         }
         else
         {
             if (mine)
             {
                 ec.BugCountDown();
                 ec.ClickedBugCountDown();
             }
             sr.sprite = defaultTexture;
             marked    = false;
         }
     }
 }