Hello,
I'm having some issues using the AnimationState.Complete functionality.
Basically what I have is this:
vault.AnimationState.SetAnimation(0, STATE + VaultAnim.OpenIdle, false);
for (int i = prev; i < curr; i++)
{
vault.AnimationState.AddAnimation(0, STATE + i + VaultAnim.TransitionState + (i + 1), false, 0f);
}
vault.AnimationState.Complete += OnDoneTransitions;
The issue I'm having is OnDoneTransitions fires right after my OpenIdle animation, it doesn't wait until the TransitionStates are complete. How do I wait until all my animations are done?