Last week I tried to make a door that would open when I clicked on it. I was able to make the door quickly in Maya and then import it into Unity.
The main problem I had with this was the coding. To start with I tried to make the code for it using the code that I had already had. I tried to use the following code:
This small bit of code means that when the mouse is over the door it should rotate 270° in the y-axis. I don’t know the reason why but this code doesn’t work.