19 lines
508 B
C#
19 lines
508 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class DrawPileUI : MonoBehaviour
|
|
{
|
|
public Text text;
|
|
public BattleController battleController;
|
|
|
|
void Start() {
|
|
this.battleController.State.HeroDeck.OnDrawPileChanged += NotifyDrawPileChanged;
|
|
NotifyDrawPileChanged();
|
|
}
|
|
|
|
public void NotifyDrawPileChanged() {
|
|
text.text = "Draw pile: " + this.battleController.State.HeroDeck.GetDrawPile().Count;
|
|
}
|
|
}
|