Exemplo n.º 1
0
    public override void OnEnterScene()
    {
        Cursor.visible = false;

        StartCoroutine(AirVRCameraFade.FadeAllCameras(this, true, 3f));
        StartCoroutine(ParticleActivate());
        _timer.Set(duration);
    }
Exemplo n.º 2
0
    public override void OnEnterScene()
    {
        Cursor.visible = false;
        StartCoroutine(AirVRCameraFade.FadeAllCameras(this, true, 1f));

        if (GameManager.Instance.autoPlay)
        {
            _timer.Set(autoPlayDelay);
        }
    }
    private IEnumerator Start()
    {
        _button.onClick.AddListener(() => {
            _remainingToStopIndicating = _vibration.keys[_vibration.keys.Length - 1].time;
            _indicator.gameObject.SetActive(true);

            AirVRInput.SetVibration(_stereoCameraRig, AirVRInput.Device.RightHandTracker, _vibration, _vibration);
        });

        yield return(StartCoroutine(AirVRCameraFade.FadeAllCameras(this, true, 0.5f)));
    }
Exemplo n.º 4
0
 IEnumerator Start()
 {
     yield return(StartCoroutine(AirVRCameraFade.FadeAllCameras(this, true, 0.5f)));
 }
Exemplo n.º 5
0
    private IEnumerator loadScene(string sceneName)
    {
        yield return(StartCoroutine(AirVRCameraFade.FadeAllCameras(this, false, 0.5f)));

        SceneManager.LoadScene(sceneName);
    }
Exemplo n.º 6
0
    public IEnumerator FadeOutAndChangeScene(string sceneName, float duration)
    {
        yield return(StartCoroutine(AirVRCameraFade.FadeAllCameras(this, false, duration)));

        UGL.sceneManager.ChangeScene(sceneName);
    }