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(); } }
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); } }