Files
FORT-BO/Assets/CONTENT/Game/Scripts/UI/GlobalUIController.cs
2026-08-06 18:56:32 +03:00

24 lines
435 B
C#

using UnityEngine;
public sealed class GlobalUIController : MonoBehaviour
{
public static GlobalUIController Instance { get; private set; }
private void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(gameObject);
return;
}
Instance = this;
}
private void OnDestroy()
{
if (Instance == this)
Instance = null;
}
}