public void AddAction(string id, string name, Action <Action> action, bool useTextBox = false, string textBoxLabel = "", bool useCheckBox = false, string checkBoxLabel = "")
 {
     State.Actions.Add(new Action()
     {
         Id            = id,
         Name          = name,
         TextBox       = useTextBox,
         TextBoxLabel  = textBoxLabel,
         CheckBox      = useCheckBox,
         CheckBoxLabel = checkBoxLabel
     });
     Actions[id] = action;
 }
 public void DoAction(Action action)
 {
     UnityMainThreadDispatcher.Instance().Enqueue(() => Actions[action.Id](action));
 }