using UnityEngine; public class LevelButton : MonoBehaviour { public string OnLevelButtonClicked() { return this.levelName; } private void Start() { if (this.levelName == string.Empty) { base.GetComponent().material.SetColor("_TintColor", Color.black); base.GetComponent().enabled = false; } } [SerializeField] private string levelName = string.Empty; }