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

26 lines
451 B
C#

using UnityEngine;
public class PageDot : MonoBehaviour
{
private GameObject m_spriteOn;
private GameObject m_spriteOff;
private void Awake()
{
m_spriteOn = base.transform.Find("SpriteOn").gameObject;
m_spriteOff = base.transform.Find("SpriteOff").gameObject;
}
public void Enable()
{
m_spriteOn.active = true;
m_spriteOff.active = false;
}
public void Disable()
{
m_spriteOn.active = false;
m_spriteOff.active = true;
}
}