Hi,
I have a chest that can be opened by a first person character. When it is opened, the content is shown by the GUI and the mouse can be used to take things from the chest. But I don’t want the character to rotate when the mouse is used for the GUI. How can I get that?
Option 1:
When you open the chest:
Time.timeScale = 0.0;
When you close it:
Time.timeScale = 1.0;
Option 2:
var mouse : MouseLook;
When open the chest:
mouse.active=false;
When close the chest:
mouse.active=true;