public override void OnUpdate()
        {
            if (Input.GetKeyUp(Key))
            {
                State = !State;
            }

            if (State && !prevState)
            {
                OnEnable?.Invoke();
                OnToggle?.Invoke();
            }
            else if (!State && prevState)
            {
                OnDisable?.Invoke();
                OnToggle?.Invoke();
            }


            if (State)
            {
                Funky?.Invoke();
            }

            prevState = State;
        }
 public override void OnDraw()
 {
     if (GUI.Button(Position, (slider == null) ? ControlName : ControlName + ": " + slider.getValue().ToString()))
     {
         Funky?.Invoke(parentMenu);
     }
 }