void OnButtonClick(RoleView view) { if (window.isSelect(view.card)) { window.offSelectCard(view.card); view.tempGameObj.SetActive(false); } else { window.onSelectCard(view.card); view.tempGameObj.SetActive(true); } MaskWindow.UnlockUI(); }
public override void DoClickEvent() { base.DoClickEvent(); if (isChoose == false) { win.onSelectCard(card); selectOn(); } else { win.offSelectCard(card); selectOff(); } win.changeButton(); }