Beispiel #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();
    }
Beispiel #2
0
 public void OnCardDropEvent()
 {
     //Call disable draggable on hand area
     CardDropEvent?.Invoke();
 }
Beispiel #3
0
 public void OnCardDropEvent()
 {
     //Calling card drop event: deck.Manager.OnCardDrop => handArea.DisableDraggable
     CardDropEvent?.Invoke();
     endTurnButton.SetActive(false);
 }