- Home /
How to change scenes after iOS user is idle
I need to load a new scene after a iPad/iPhone user is idle for about 5 minutes, what's the best way to go about doing this?
Comment
Answer by landon912 · Aug 31, 2012 at 01:14 AM
I don't know much about iOS dev but I will try to help you: Ps: Note that there is a "!" in the first if statement.
If(!//add input class here ){
Idletime+1 * Time.deltaTime;
}
If//add input class here){
Idletime = 0;
}
If(Idletime = 300){
Application.LoadLevel("1");
}
Your answer
Follow this Question
Related Questions
HTTPS (SSL) initial connection timeout bug 1 Answer
Best way to determine WWW timeout/404/etc.? 2 Answers
Unity Networking client timeout disconnect on standalone build, but not in editor 0 Answers
Change the default timeout in WWW calls ..? 1 Answer
WWW not returning error when no connection in OCULUS GO. 0 Answers