public IEnumerator TeleportRoutine(string mapName, string targetEventName) { TransitionData data = Global.Instance().Database.Transitions.GetData(DefaultTransitionTag); yield return(camera.GetComponent <FadeImageEffect>().FadeRoutine(data.GetFadeOut())); StartCoroutine(avatar.GetComponent <CharaEvent>().FadeRoutine(0.1f, true)); RawTeleport(mapName, targetEventName); camera = activeMap.GetComponentInChildren <MapCamera>(); yield return(camera.GetComponent <FadeImageEffect>().FadeRoutine(data.GetFadeIn(), true)); }