Hello !
I have a Cube. I want to rotate in Y axis every time I click on it.
in State 1 I used Mouse Pick and Compare Gameobject tag. If tag of Clicked object is "Beam", It will go to 2nd state and will rotate that Beam. and come back again to First state.
Problem is, FSM is going to second state when I bring mouse above cube. It should only go to second when I click on it.
Overall, I wanna rotate that Cube in Y axis 90 Degree every time , I click* on it.
Help !