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

19 lines
529 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DiscardPileUI : MonoBehaviour
{
public Text text;
public BattleController battleController;
void Start() {
this.battleController.State.HeroDeck.OnDiscardPileChanged += NotifyDiscardPileChanged;
NotifyDiscardPileChanged();
}
public void NotifyDiscardPileChanged() {
text.text = "Discard pile: " + this.battleController.State.HeroDeck.GetDiscardPile().Count;
}
}