public override bool Act(float delta) { for (int i = running - 1; i >= 0; i--) { ScriptAction action = actions[i]; if (action.Act(delta)) { action.Reset(); running--; if (running != i) { actions[i] = actions[running]; actions[running] = action; } } } return(CompleteIf(running == 0)); }