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