Пример #1
0
    private IEnumerator WaitForTransitionToScene(SceneData.Scene scene)
    {
        SceenTranstionAnimator.SetBool("TriggerExit", true);
        yield return(new WaitForSeconds(2f));

        GameManager.Instance.LoadLevel(SceneData.GetSceneStringFromEnum(scene));
    }
Пример #2
0
 public void TransitionToScene(SceneData.Scene scene)
 {
     StartCoroutine(WaitForTransitionToScene(scene));
 }