コード例 #1
0
 public void Draw(int playerNum)
 {
     if (playerNum == localPlayerNum)
     {
         CardState card = new CardState(informer.DrawLocalCard(), localPlayerNum);
         board.localHand.Add(card);
         uiHooks.onLocalDrawCard(card);
     }
     else
     {
         board.oppDeckSize -= 1;
         board.oppHandSize += 1;
         uiHooks.onOppDrawCard();
     }
     foreach (CardState card in board.playOrder)
     {
         card.TryTrigger(EffectTrigger.DRAW, this, board, new Targets(playerNum));
     }
 }