How do i figure out when a TaskReference is complete Kinematica

So i've been playing around with the Kinematica package animation and created a sequence in kinematica how do I know when a sequence is finished and to fire the next task in the sequence when the previous animation in the sequence is finished. I have used a Action().Timer(2.5f), but is there a better way to handle this?

Here my source:

var selector = synthesizer.Root.Selector();

var sequence = selector.Condition().Sequence();

//We change this to attack rather then idle
Idle.Default).And(Attack.Default), 0.01f);


Thank you in advance

Also how do i make Task wait till the current Task is finished in kinematica if possible.

Never mind found a solution to it. Brokedown the Kinematica demo sample.