chip-game/Assets/Scripts/Core/UiManager.cs
se_ga 16b02e828a Ссылки на группы главного меню развязаны в UiManager;
DifficultyManager изменен способ инициализации синглтона
2026-03-20 13:32:26 +03:00

33 lines
694 B
C#
Raw 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 = FindObjectOfType<UiManager>();
if (_instance == null)
{
Debug.LogWarning($"Не найден {typeof(UiManager)}");
}
}
return _instance;
}
}
//Ссылки главно меню
public RectTransform UpperMenuGroup;
public RectTransform PveOption;
public RectTransform PvpOption;
public RectTransform DownMenuGroup;
}