// Acts out Action. Runs every updateloop. public override void Execute(RuleController controller) { // Execute Current Index int index = controller.GetSequenceIndex(this); ActionElements[index].Execute(controller); // Increment Index if Action-Element is complete if (ActionElements[index].IsComplete(controller)) { controller.IncrementSequence(this); } }