private void ButtonCfBase_OnClick(object sender, RoutedEventArgs e) { var btn = sender as Button; if (btn == null) { return; } CrowData data = btn.DataContext as CrowData; if (data != null) { OnSelectHandle?.Invoke(null, data); } }
protected virtual void OnClick(RectTransform node, PetInfo data) { onSelectCallBack?.Invoke(data, node); }