- Home /
Question by
Sadeq Rasheed · Jan 25, 2014 at 12:32 AM ·
animationscenes
Switch scenes after animation completes?
lets say i have 2 scenes
The first scene has a Camera Animation clip how do i make the game automatically goes to the other scene after the animation clip is over ?
Comment
If you're using legacy, something like this is sufficient (keep in $$anonymous$$d this is an Animation, not AnimationClip. I forgot the conversion factor:
Animation anim;
void LoadAfterAnim()
{
if (animWasPlaying)//$$anonymous$$ark true when you start playing the animation
{
if (!anim.isPlaying)
{
Application.LoadLevel(int x);
}
}
}