public void EnqueueAction(string actionName) { LevelManager lm = LevelManager.Instance; ICommand cmd = _commandFuncs[actionName].Invoke(lm.CurrentUnit); Debug.Log("Adding command: " + cmd); lm.AddCommand(cmd); }