bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/LevelButton.cs
2024-02-24 22:40:44 -05:00

21 lines
369 B
C#

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