using TMPro;
using UnityEngine;
namespace LobbyRelaySample.UI
{
///
/// After all players ready up for the game, this will show the countdown that occurs.
///
public class CountdownUI : ObserverPanel
{
[SerializeField]
TMP_Text m_CountDownText;
public override void ObservedUpdated(LocalLobby observed)
{
if (observed.CountDownTime <= 0)
return;
m_CountDownText.SetText($"Starting in: {observed.CountDownTime}");
}
}
}