private bool _playerTurn(object changeStateData) { Debug.Log("Player Turn!"); _currentMoveRequest = new MoveRequest(); _currentMoveRequest.playerIndex = activePlayer.index; _playMoveState = PlayMoveState.PLAY_CARD; _playerHandView.playCardMatEnabled = true; _playerHandView.tradeMatEnabled = false; return(true); }
private void onPlayCardDrop(GeneralEvent e) { Debug.Log("PlayCard : " + e.data); PointerEventData data = (e.data as PointerEventData); CardView droppedCard = data.pointerDrag.GetComponent <CardView>(); if (_playMoveState == PlayMoveState.PLAY_CARD) { _playMoveState = PlayMoveState.SELECT_PAWNS; _playerHandView.playCardMatEnabled = false; _currentMoveRequest.handIndex = droppedCard.handIndex; DispatchEvent(e); // Pass on } }