public void showConfirmDialog(UIReadyDelveryItem uiItem) { confirmDialog.show(() => { string result = delveryReward(uiItem); if (result == null) { result = "发送成功"; } delveryResult.text = result; }); }
public void showConfirmDialog(UIBuyItem uiItem) { confirmDialog.show(delegate { string text = buyItem(uiItem); if (text == null) { text = "兑换成功"; } exchangeResult.text = text; }); }
public void showConfirmDialog(UIItem uiItem) { confirmDialog.show(() => { deleteItem(uiItem); }); }