예제 #1
0
 private void OnMouseDown()
 {
     if (BoardBehaviour.GetUIState() == UIState.TARGETING)
     {
         if (state == CardState.SLOT)
         {
             BoardBehaviour.SelectTarget(gameObject);
             BoardBehaviour.SetUIState(UIState.ACTION);
         }
     }
 }
예제 #2
0
 private void OnMouseDown()
 {
     if (BoardBehaviour.GetUIState() != UIState.TARGETING && BoardBehaviour.GetUIState() != UIState.SLOT_TARGETING && BoardBehaviour.IsCurrentPlayerAction())
     {
         NetworkController.Instance.PlayerAttackWithSlot(BoardBehaviour.LocalPlayerName,SlotId,SlotId);
     }
     if (BoardBehaviour.GetUIState() == UIState.SLOT_TARGETING)
     {
         NetworkController.Instance.SelectSlotEmit(BoardBehaviour.LocalPlayerName,Pob.PlayerName,SlotId);
         BoardBehaviour.SetUIState(UIState.ACTION);
     }
 }