-1
I’m making a Puzzle but I’ve caught it in one part. It seems simple, but I can’t find a solution. Well, I’m using the mouse to click on an object so that it will rotate to a certain angle, but I wanted that by clicking on the same object one more time, the click would be blocked, so the person who is playing, continue rotating the other objects without being able to rotate what has already been clicked. I want you to click, stop, go to the next square clicking and so on, because after clicking all, the phase ends, YOUWIN appearance.
I’m using this script for rotation
private void Onmousedown() { if (!Gamecontrol.youwin) Transform. Rotate(0f,0f,90f); } }
HELP ME KK THANK YOU!!