Quantcast
Channel: Answers for "Get animation to play only after another has finished"
Viewing all articles
Browse latest Browse all 4

Answer by Fattie

$
0
0
Your code is incredibly wrong - heh (1) **never use "else if" if you're a beginner**. that sentence is clear right? so, delete that from your code. (2) use Debug.Log statements everywhere. you've got it right? (2) try writing "break away" code. something like this .. notice the return statements if ( the animation is playing ) { // apart from anything else, if an animation is alredy underway, // just do nothing at all Debug.Log("I'M IN AREA 1..."); return; } if ( the player has cast ) { // again, just do nothing at all here... Debug.Log("I'M IN AREA 2..."); return; } Debug.Log("I'M IN AREA 3..."); And so on ... your logic is impossible to understand so you'll have to figure it out yourself. But it's very very easy if you use "breakaway" code ... and Debug.Log statements.

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images