Skip to content

How can I sequence 2 callbacks in parallel but with delay ? #101

Answered by gabe39
gabe39 asked this question in FAQ
Discussion options

You must be logged in to vote

I actually found a way to do this, but I'm not sure if this is the correct approach:

        seq.Chain(
            Sequence.Create()
            .ChainCallback(this, target => PlayKnightAttack(2)) // Play knight2 attack animation
            .Group(Tween.Delay(this, knightHurtDelayTime, target => PlayKnightHurt(1))) //Group with previous sequence and play in parallel knight1 hurt animation
        );

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@KyryloKuzyk
Comment options

@gabe39
Comment options

@gabe39
Comment options

Answer selected by KyryloKuzyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants