mixedcards/Assets/Battle/UI/DrawPileUI.cs
2020-10-13 00:58:33 -04:00

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;
}
}