Example #1
0
 public void Clic()
 {
     if (OnToolUsed != null && !animating)
     {
         animating = true;
         OnToolUsed(this);
     }
     else if (OnToolUsed == null && !animating)
     {
         if (CardClicked == null && c1 == null)
         {
             OpenCard();
             CardClicked += SetCard1;
         }
         else if (CardClicked == null && c1 != null)
         {
             OpenCard();
             CardClicked += SetCard2;
         }
     }
 }
Example #2
0
 Cm SetCard2()
 {
     CardClicked -= SetCard2;
     Solve();
     return(this);
 }
Example #3
0
 Cm SetCard1()
 {
     CardClicked -= SetCard1;
     return(c1 = this);
 }