Пример #1
0
 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();
 }
Пример #2
0
 public override void DoClickEvent()
 {
     base.DoClickEvent();
     if (isChoose == false)
     {
         win.onSelectCard(card);
         selectOn();
     }
     else
     {
         win.offSelectCard(card);
         selectOff();
     }
     win.changeButton();
 }