DrawPileUI and DiscardPileUI
This commit is contained in:
parent
567b732f85
commit
05fee309c3
8 changed files with 338 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue