33 lines
694 B
C#
33 lines
694 B
C#
using UnityEngine;
|
||
|
||
public class UiManager : MonoBehaviour
|
||
{
|
||
private static UiManager _instance;
|
||
public static UiManager Instance
|
||
{
|
||
get
|
||
{
|
||
if (_instance == null)
|
||
{
|
||
_instance = FindObjectOfType<UiManager>();
|
||
|
||
if (_instance == null)
|
||
{
|
||
Debug.LogWarning($"Не найден {typeof(UiManager)}");
|
||
}
|
||
}
|
||
return _instance;
|
||
}
|
||
}
|
||
|
||
|
||
//Ссылки главно меню
|
||
public RectTransform UpperMenuGroup;
|
||
public RectTransform PveOption;
|
||
public RectTransform PvpOption;
|
||
public RectTransform DownMenuGroup;
|
||
|
||
|
||
|
||
}
|