- Home /
VR Navigation Button / LoadLevel after 2 seconds
Hello Folks, Im creating an application with Google VR SDK to visualize with the Samsung Gear VR, I need your help with this: I create a button that when I looking at it for 2 seconds this takes me to another scene, until here everything works ok.
ISSUE: When I look at the button and look away from the collider area before the 2 seconds ends , and when i look at the button again, I need that the timer restart from the beginning 2 seconds, right now the time continuous since I look the button the last time I enter to the collider area.
I leave a video showing what happens and the script I'm using
Really appreciate your help
https://www.youtube.com/watch?v=lFSVmwHhNbE&feature=youtu.be
#pragma strict
var timer : float = 1;
function Update ()
{
timer -= Time.deltaTime;
if(timer <= 0)
{
Application.LoadLevel("esc 2");
}
}
Your answer
Follow this Question
Related Questions
Steam VR Omni-Directional Locomotion 1 Answer
How to Impement Steering Wheel in SteamVR? 1 Answer
location base vr 0 Answers
How do I change the SteamVR transition screen that appears when you are changing applications 0 Answers
Framerate drop after 1min playback with Cardboard and Easy Movie Texture 1 Answer