using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UISwitch : MonoBehaviour { protected GameObject nextPage; protected GameObject backPage; protected Button nextBtn; protected Button backBtn; public string triggerName; public bool hideSelf = true; // Start is called before the first frame update public void OnEnable() { nextBtn = transform.Find("nextBtn")?.GetComponent