void Update() { if (GvrViewer.Instance.Triggered && _tapCountdown <= 0 && !audio.isNarrativePlaying) { StartCoroutine(fade.beginFade()); Invoke("move", 0.5f); // target = spheres[index].transform.position; // index = (index + 1) % spheres.Length; // StartCoroutine (move()); _tapCountdown = TapDelay; } else { _tapCountdown -= Time.deltaTime; } }
public void PointerDown() { StartCoroutine(fade.beginFade()); Invoke("move", 0.5f); }