예제 #1
0
    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;
        }
    }
예제 #2
0
 public void PointerDown()
 {
     StartCoroutine(fade.beginFade());
     Invoke("move", 0.5f);
 }