// Called by Invoke. Resets variables for the next action. private void CompleteAction() { currentAction.running = false; currentAction.PostPerform(); invoked = false; }