rise-and-swine/Assets/Scripts/Assembly-CSharp/LevelButton.cs
2023-02-25 23:04:03 -05:00

21 lines
403 B
C#

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