public void addButtonAction(Button button, Action action, string target, bool pressed) { ButtonActionInfo bI = new ButtonActionInfo(); bI.action = action; bI.button = button; bI.button.addCallbackOnButtonPressed(OnButtonPressed); bI.target = target; bI.pressed = pressed; interactions.Add(bI); }