Make HeroHandControls into generic HandControls

This commit is contained in:
henriquenakashima 2020-09-20 14:17:54 -04:00
parent 5456958651
commit fb453702ba
3 changed files with 8 additions and 8 deletions

View file

@ -21,7 +21,7 @@ public class BattlePlayerControls : MonoBehaviour
private BattleDeck<MonsterCard> monsterDeck;
private PlayArea playArea;
private HeroHandControls heroHandControls;
private HandControls<HeroCard> heroHandControls;
private Dictionary<BaseCard, GameObject> cardsInPlayUIs;
public void Init(
@ -30,7 +30,7 @@ public class BattlePlayerControls : MonoBehaviour
this.monsterDeck = monsterDeck;
this.playArea = playArea;
this.heroHandControls = new HeroHandControls(this, this.uiCanvas, this.cardPrefab);
this.heroHandControls = new HandControls<HeroCard>(this.uiCanvas, this.cardPrefab);
this.heroHandControls.OnCardClicked += OnCardClicked;
this.cardsInPlayUIs = new Dictionary<BaseCard, GameObject>();
}