public void SetAction(buttonAction action, int value) { button.onClick.AddListener(delegate { action.Invoke(value); }); }