Move heroDeck and monsterDeck into BattleState
This commit is contained in:
parent
f1ef7d7d46
commit
12eb97084f
4 changed files with 45 additions and 44 deletions
|
|
@ -9,11 +9,11 @@ public class DiscardPileUI : MonoBehaviour
|
|||
public BattleController battleController;
|
||||
|
||||
void Start() {
|
||||
this.battleController.GetHeroDeck().OnDiscardPileChanged += NotifyDiscardPileChanged;
|
||||
this.battleController.State.HeroDeck.OnDiscardPileChanged += NotifyDiscardPileChanged;
|
||||
NotifyDiscardPileChanged();
|
||||
}
|
||||
|
||||
public void NotifyDiscardPileChanged() {
|
||||
text.text = "Discard pile: " + this.battleController.GetHeroDeck().GetDiscardPile().Count;
|
||||
text.text = "Discard pile: " + this.battleController.State.HeroDeck.GetDiscardPile().Count;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue