bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/LevelButton.cs

22 lines
369 B
C#
Raw Permalink Normal View History

2024-02-24 22:40:44 -05:00
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;
}
}
}