- Home /
how to make my animation play one after another C#
okay first of all i already search a lot about this but I cant really do it and im trying to fix this for days im a newbie and its really hard for me, okay here's my problem
private void HandleAnswer(int answer) {
if (answer == 1)
{
ShowIncorrect = false;
ShowCorrect = true;
Poop = false;
NextQuestion();
animation.PlayQueued("CorrectAnswer",QueueMode.PlayNow);
Enemy.animation.PlayQueued("ENMattck", QueueMode.CompleteOthers);
}
else {
ShowIncorrect = true;
ShowCorrect = false;
Poop = false;
animation.PlayQueued ("Wrong answer",QueueMode.PlayNow);
Enemy.animation.PlayQueued("ENMattck", QueueMode.CompleteOthers);
}
}
okay what happens is, after i pressed or choose the correct answer or the correct button both animation play's at the same time what i want is the first animation will play first after the other one not the same time, what i need is a code that i can use in this conditions and not on the Update, anyway either ways anything is fine just to make this work thank you in advance
Your answer
![](https://koobas.hobune.stream/wayback/20220613132853im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to play another animation on different object after the first one 1 Answer
How to achieve squash and stretch on characters similar to 3D Mario games 0 Answers
Can I make animations snap to a frame? 1 Answer
How to play two animations simultaneously one after another ? 0 Answers
What I'm doing wrong here? (assetBundles and AnimatorOverrideController) 0 Answers