public void ChangeScene(string scene)
    {
        _loading = SceneManager.LoadSceneAsync(scene);

        _loading.allowSceneActivation = false;

        _view.AnimatorComponent.SetTrigger(Animator.StringToHash("fadeout"));

        _coroutineProcessor.Build(() => { }).WaitForSeconds(2).Then(() =>
        {
            _loading.allowSceneActivation = true;
        }).Execute();
    }
예제 #2
0
 private void Start()
 {
     processor.Build(() => print("Good")).WaitForSeconds(3).Then(() => print("Very good")).Execute();
 }