mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
20 lines
456 B
C#
20 lines
456 B
C#
using UnityEngine;
|
|
|
|
namespace Assets._Project.Develop.Runtime.Utilities.LoadingScreen
|
|
{
|
|
public class StandardLoadingScreen : MonoBehaviour, ILoadingScreen
|
|
{
|
|
public bool IsShown => gameObject.activeSelf;
|
|
|
|
private void Awake()
|
|
{
|
|
Hide();
|
|
DontDestroyOnLoad(this);
|
|
}
|
|
|
|
public void Hide() => gameObject.SetActive(false);
|
|
|
|
public void Show() => gameObject.SetActive(true);
|
|
}
|
|
}
|