FM/Assets/TouchScript/Examples/_misc/Scripts/ExamplesList.cs

22 lines
382 B
C#
Raw Normal View History

/*
* @author Valentin Simonov / http://va.lent.in/
*/
using UnityEngine;
2025-06-04 22:49:37 +08:00
/// <exclude />
public class ExamplesList : MonoBehaviour
2025-06-04 22:49:37 +08:00
{
public RectTransform Content;
2025-06-04 22:49:37 +08:00
void Start()
{
gameObject.SetActive(false);
}
2025-06-04 22:49:37 +08:00
public void ShowHide()
{
gameObject.SetActive(!gameObject.activeSelf);
Content.localPosition = Vector3.zero;
}
}