/
GeekNerd
/
ServerModelingProject
Обзор
Документация
Войти
/
GeekNerd
/
ServerModelingProject
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Assets/Scripts/UI_Logic/MainMenuPart/Buttons/Views/BaseButtonView.cs
22 строки
484 B
Gorney-Alex
Init
30 май 2026, 19:05
30 май 2026, 19:05
3cdcc49
Код
Авторство
О чём код?
using JetBrains.Annotations; using UnityEngine; using UnityEngine.UI; namespace UI_Logic.Buttons { [RequireComponent(typeof(Button))] public abstract class BaseButtonView : MonoBehaviour { [CanBeNull] private Button _button; public Button GetButton() { if (_button == null) { _button = GetComponent<Button>(); } return _button; } } }