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; } } }
Cm SetCard2() { CardClicked -= SetCard2; Solve(); return(this); }
Cm SetCard1() { CardClicked -= SetCard1; return(c1 = this); }