- Home /
Pause script until animation is finished.
Before we start, yes, I know there are loads of questions about this already answered. I just want to know if there is a more clean way of doing it instead of making tons of IEnumerators and using WaitForSeconds. It just seems cluttered when for every single thing you need to wait for a certain animation, you have to create an IEnumerator? Is there really not a simpler way of doing this? And if not built in, is there at least something on the asset store I can use?
FYI: I am making an RPG battle system. I need to wait for the enemies animation to finish so that I can then reactivate the attack button.
Answer by Jasr_88 · Apr 29, 2020 at 06:34 PM
It's still not as compact as I wanted it to be, but it works a lot better indeed. I doubt it will ever be compact as I wished, though. Thank you so much!
Your answer
Follow this Question
Related Questions
Problem with using IEnumerator for method, c# 1 Answer
How to stop coroutines, when paused 2 Answers
WaitForSeconds Not Working 4 Answers
c# - Having problems with the WaitForSeconds() method. 1 Answer
Run Coroutine once, but finish Lerping 2 Answers