private IEnumerator WaitForTransitionToScene(SceneData.Scene scene) { SceenTranstionAnimator.SetBool("TriggerExit", true); yield return(new WaitForSeconds(2f)); GameManager.Instance.LoadLevel(SceneData.GetSceneStringFromEnum(scene)); }
public void TransitionToScene(SceneData.Scene scene) { StartCoroutine(WaitForTransitionToScene(scene)); }