I'm new to unity and would like to develop a simple VR game that a timer starts when the player looks at the Start button and the timer stops when the player looks at the stop button. The timer function works, but I am having trouble integrating it with the gazedAt function. At the moment, the timer starts automatically without looking at it. Any help would be great!!
Start timer with GVR controller
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- using UnityEngine.UI;