コード例 #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();
    }
コード例 #2
0
 public void OnCardDropEvent()
 {
     //Call disable draggable on hand area
     CardDropEvent?.Invoke();
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: janegamedev/Repo_Queue
 public void OnCardDropEvent()
 {
     //Calling card drop event: deck.Manager.OnCardDrop => handArea.DisableDraggable
     CardDropEvent?.Invoke();
     endTurnButton.SetActive(false);
 }