using TowerDefense.Level;
using UnityEngine;
using UnityEngine.UI;
namespace TowerDefense.UI.HUD
{
///
/// A class for displaying the wave feedback
///
[RequireComponent(typeof(Canvas))]
public class WaveUI : MonoBehaviour
{
///
/// The text element to display information on
///
public Text display;
public Image waveFillImage;
///
/// The total amount of waves for this level
///
protected int m_TotalWaves;
protected Canvas m_Canvas;
///
/// cache the total amount of waves
/// Update the display
/// and Subscribe to waveChanged
///
protected virtual void Start()
{
m_Canvas = GetComponent