2026-07-14 11:14:13 +03:00

33 lines
697 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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