19 lines
506 B
C#
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;
|
|
}
|
|
}
|