Implement insight level

This commit is contained in:
henriquenakashima 2020-09-20 14:37:51 -04:00
parent ca16846f2a
commit 537538a6ca
4 changed files with 22 additions and 9 deletions

View file

@ -31,9 +31,9 @@ public class BattlePlayerControls : MonoBehaviour
this.monsterDeck = monsterDeck;
this.playArea = playArea;
this.heroHandControls = new HandControls<HeroCard>(this.uiCanvas, this.cardPrefab, HandControlsPosition.Bottom);
this.heroHandControls = new HandControls<HeroCard>(this.uiCanvas, this.cardPrefab, HandControlsPosition.Bottom, int.MaxValue);
this.heroHandControls.OnCardClicked += OnHeroCardClicked;
this.monsterHandControls = new HandControls<MonsterCard>(this.uiCanvas, this.cardPrefab, HandControlsPosition.Top);
this.monsterHandControls = new HandControls<MonsterCard>(this.uiCanvas, this.cardPrefab, HandControlsPosition.Top, 1);
this.monsterHandControls.OnCardClicked += OnMonsterCardClicked;
this.cardsInPlayUIs = new Dictionary<BaseCard, GameObject>();
}
@ -51,10 +51,6 @@ public class BattlePlayerControls : MonoBehaviour
}
private void SetMonsterHand(List<MonsterCard> hand) {
// TODO
}
private void OnHeroCardClicked(HeroCard card) {
if (this.singleTargeting == null) {
if (this.battleController.CanUseHeroCard(card)) {