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,9 @@
|
||||
namespace Assets._Project.Develop.Runtime.Utilities.LoadingScreen
|
||||
{
|
||||
public interface ILoadingScreen
|
||||
{
|
||||
bool IsShown { get; }
|
||||
void Show();
|
||||
void Hide();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94ae254a4c187de408c5edfea987d792
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d099fb8b85a67de4292ff35469d7e2ac
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user