Exemplo n.º 1
0
        private void Awake()
        {
            var buttonIndex = 0;

            foreach (var button in Buttons)
            {
                var idx = buttonIndex++;
                button.onClick.AddListener(() => MenuSelected?.Invoke(idx));
            }
        }
Exemplo n.º 2
0
 public override void RowSelected(UITableView tableView, Foundation.NSIndexPath indexPath)
 {
     MenuSelected?.Invoke(indexPath.Row);
     tableView.DeselectRow(indexPath, true);
 }