예제 #1
0
 public void RemovePlayerCard(PlayerType pType, CardData cData, int index)
 {
     //update the hand ui here
     if (_CommanderUI._Player.Type == pType)
     {
         //deselect card
         _HandUI.DeselectCardNoPopdown(index);
         _CommanderUI.DisplayInfo();
     }
 }
예제 #2
0
    public void RemovePlayerCard(PlayerType pType, CardData cData, int index)
    {
        //update the hand ui here
        Player player = _BattleManager.GetActivePlayer();

        if (player != null && player.Type == pType)
        {
            //deselect card
            _HandUI.DeselectCardNoPopdown(index);
            _HandUI.SetHand(player.Hand);
        }
    }