mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
init: add project
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user