// The update will launch a run of the behaviourtree root, which in turn trigger the run for its children, and so on... void Update() { if (Time.time - lastDecisionTick > decisionTick) { if (!pawn.GetHealth().IsDead() && !pawn.GetHealth().IsKnockedDown()) { behaviourTreeRoot.Run(); } lastDecisionTick = Time.time; } }