private void OnMouseDown() { if (BoardBehaviour.GetUIState() == UIState.TARGETING) { if (state == CardState.SLOT) { BoardBehaviour.SelectTarget(gameObject); BoardBehaviour.SetUIState(UIState.ACTION); } } }
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); } }