Ejemplo n.º 1
0
    public void OnCardDropEvent()
    {
        //Unsubscribe current player from ReceiveSelectedCellEvent
        ReceiveSelectedCellEvent -= players[currentPlayerIndex].Move;

        //Call all methods which subscribed to CardDropEvent, if not null
        CardDropEvent?.Invoke();
    }
Ejemplo n.º 2
0
 public void OnCardDropEvent()
 {
     //Call disable draggable on hand area
     CardDropEvent?.Invoke();
 }
Ejemplo n.º 3
0
 public void OnCardDropEvent()
 {
     //Calling card drop event: deck.Manager.OnCardDrop => handArea.DisableDraggable
     CardDropEvent?.Invoke();
     endTurnButton.SetActive(false);
 }