Unity Click Counter | Sololearn: Learn to code for FREE!


Unity Click Counter

Example: I have 3 Images and 1 Text, if I click the 1st Image, it will update the TEXT and make it 1 and then the image will be disable, if I click the 2nd image it will update the TEXT and make it 2 and then disable the image, and even in 3rd image. I am new to C# and Unity, Please provide an answer or code that the beginner like me will understand. Please. TIA

9/4/2018 1:33:49 AM


3 Answers

New Answer


int clickCount = 0; @Override On Mouse clicked (MouseClickedEvent event) { clickCount++; }


What if I click the image and it will update the text and then that image will be disable .


Don't you have an option of generating that method?