mixedcards/Assets/Battle/UI/DrawPileUI.cs
2020-09-19 16:06:08 -04:00

19 lines
506 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.GetHeroDeck().OnDrawPileChanged += NotifyDrawPileChanged;
NotifyDrawPileChanged();
}
public void NotifyDrawPileChanged() {
text.text = "Draw pile: " + this.battleController.GetHeroDeck().GetDrawPile().Count;
}
}