public void ExecuteCommands() { commandsForExecute.Clear(); fv1.Clear(); fv2.Clear(); commandsForExecute = cmdPanel.GetRealMainCommands(); fv1 = cmdPanel.GetRealFV1Commands(); fv2 = cmdPanel.GetRealFV2Commands(); aimnumber = 0; executedCommands = 0; SharedData.fallDistance = 0; lastSwitchedOff = null; LockUI(false); character.GetComponent <JoeCommandControl>().stopped = false; inStart = true; actionBtn.interactable = false; stopBtn.interactable = true; die = false; fvCallInARow = 0; Invoke("ExecuteCmd", 0); }