// Second, after the fade out finishes, move the player and start a fade-in void endFadeOut() { moveToDor(); FadeOut fo = Camera.main.GetComponent("FadeOut") as FadeOut; fo.DoFadeIn(5, endFadeIn); }
// Second, after the fade out finishes, move the player and start a fade-in void endFadeOut() { moveToDor(); FadeOut fo = Camera.main.GetComponent("FadeOut") as FadeOut; fo.DoFadeIn(5, endFadeIn); }