Add some art, fix UI anchors
This commit is contained in:
parent
c31747bc19
commit
0ca4c3276d
22 changed files with 542 additions and 65 deletions
|
|
@ -35,11 +35,11 @@ public class BattlePlayerControls : MonoBehaviour
|
|||
this.insightLevel = insightLevel;
|
||||
|
||||
this.heroHandControls = new HandControls<HeroCard>(
|
||||
this.uiCanvas, this.cardPrefab, HandControlsPosition.Bottom, TeamChoice.Heroes,
|
||||
heroDeck, this.uiCanvas, this.cardPrefab, HandControlsPosition.Bottom, TeamChoice.Heroes,
|
||||
int.MaxValue, heroHandPlayability);
|
||||
this.heroHandControls.OnCardClicked += OnHeroCardClicked;
|
||||
this.monsterHandControls = new HandControls<MonsterCard>(
|
||||
this.uiCanvas, this.cardPrefab, HandControlsPosition.Top, TeamChoice.Monsters, 1, null);
|
||||
monsterDeck, this.uiCanvas, this.cardPrefab, HandControlsPosition.Top, TeamChoice.Monsters, 1, null);
|
||||
this.monsterHandControls.OnCardClicked += OnMonsterCardClicked;
|
||||
this.cardsInPlayUIs = new Dictionary<BaseCard, GameObject>();
|
||||
|
||||
|
|
@ -94,14 +94,6 @@ public class BattlePlayerControls : MonoBehaviour
|
|||
return this.singleTargeting != null && this.singleTargeting.CanTarget(participant);
|
||||
}
|
||||
|
||||
public void NotifyHeroHandPileChanged() {
|
||||
this.heroHandControls.SetHand(this.heroDeck.GetHandPile().ToList());
|
||||
}
|
||||
|
||||
public void NotifyMonsterHandPileChanged() {
|
||||
this.monsterHandControls.SetHand(this.monsterDeck.GetHandPile().ToList());
|
||||
}
|
||||
|
||||
private void NotifyPlayAreaChanged() {
|
||||
DestroyCardsThatLeftPlayArea();
|
||||
CreateCardsThatEnteredPlayArea();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue