I'm new to unity and fairly new to programming in general.
My current problem is that I have a program which allows the user to toggle between different cameras. The user can control the cameras with the A,S,D,W keys plus the mouse itself to look around. What I'm looking for is a script that will keep checking whether there has been any user input, from the keys or mouse, and if there hasn't been, for example, 90 seconds call a function to revert back to the main menu.
Any advice on how best to accomplish this is much appreciated.
asked May 03, 2010 at 06:47 PM
Something like this should do it. I'm using the GetAxis functions because - by default - WASD and the Arrow keys both map to the horizontal and vertical axes.
answered May 03, 2010 at 07:09 PM