44 lines
918 B
C#
44 lines
918 B
C#
using UnityEngine;
|
|
|
|
namespace AibisDream.UI
|
|
{
|
|
public class InfoPanel : MonoBehaviour, IUIPanel
|
|
{
|
|
[SerializeField] private DemoTimer demoTimer;
|
|
[SerializeField] private GameObject loading;
|
|
|
|
public void SetTimerActive(bool isOpen)
|
|
{
|
|
demoTimer.gameObject.SetActive(isOpen);
|
|
}
|
|
|
|
public void SetTimerDuration(int time)
|
|
{
|
|
demoTimer.totalTimeInSeconds = time;
|
|
}
|
|
|
|
public void ShowLoading()
|
|
{
|
|
loading?.SetActive(true);
|
|
}
|
|
|
|
public void HideLoading()
|
|
{
|
|
loading?.SetActive(false);
|
|
}
|
|
|
|
public void Show()
|
|
{
|
|
gameObject.SetActive(true);
|
|
}
|
|
|
|
public void Hide()
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
|
|
public bool IsOpen => gameObject.activeSelf;
|
|
|
|
public bool IsCloseable => false;
|
|
}
|
|
} |