using UnityEngine; using UnityEngine.UI; using TMPro; using RR.Game2D.Core.Managers; namespace RR.Common.UI { public class LevelButton : MonoBehaviour { [SerializeField] private TextMeshProUGUI title; [SerializeField] private Button button; private int _world; private int _stage; public void Setup( string levelSceneName, int levelWorld, int levelStage, Selectable onUp = null, Selectable onDown = null, Selectable onLeft = null, Selectable onRight = null ) { _world = levelWorld; _stage = levelStage; if (title) title.text = levelSceneName; // "1-3, 1-1 и т.д." if (!button) { button = GetComponentInChildren