DrawPileUI and DiscardPileUI

This commit is contained in:
henriquenakashima 2020-09-19 14:06:36 -04:00
parent 567b732f85
commit 05fee309c3
8 changed files with 338 additions and 7 deletions

View file

@ -27,11 +27,6 @@ public class BattleController : MonoBehaviour
private int energy;
void Awake() {
}
// Start is called before the first frame update
void Start()
{
this.heroDeck = new HeroDeck(cardIds);
heroes = new BattleHero[3];
@ -78,7 +73,11 @@ public class BattleController : MonoBehaviour
this.battlePlayerControls.OnCardUsed += this.NotifyCardUsed;
this.battlePlayerControls.OnTurnPassed += this.NotifyTurnPassed;
this.heroDeck.OnHandPileChanged += this.battlePlayerControls.NotifyHandPileChanged;
}
// Start is called before the first frame update
void Start()
{
DecideEnemyTarget();
StartHeroTurn();
}
@ -155,4 +154,8 @@ public class BattleController : MonoBehaviour
public int GetMaxEnergy() {
return this.maxEnergy;
}
public HeroDeck GetHeroDeck() {
return this.heroDeck;
}
}