Make HeroHandControls into generic HandControls
This commit is contained in:
parent
5456958651
commit
fb453702ba
3 changed files with 8 additions and 8 deletions
|
|
@ -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>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue