private void OnActionPressed(UIActionMenuItemModel model)
 {
     CloseUI();
     if (_callback != null)
     {
         _callback.Invoke(model);
         _callback = null;
     }
 }
Beispiel #2
0
 public void SetData(UIActionMenuItemModel data, Action <UIActionMenuItemModel> callback)
 {
     _item     = data;
     text.text = _item.text;
     _callback = callback;
 }