using System.Collections; using System.Collections.Generic; using UnityEngine; using ChivaXR; using Sirenix.OdinInspector; public class ProcessState_CurvedUI : MonoBehaviour, IProcessState { public List curvedUIInfos = new List(); [LabelText("是否激活")] [ReadOnly] public bool active = true; public void EnterState(bool enterCurrent) { if (Application.isPlaying) { if (active) { for (int i = 0; i < curvedUIInfos.Count; i++) { if (enterCurrent) curvedUIInfos[i].OpenUIInfo(); else curvedUIInfos[i].CloseUIInfo(); } } } else { for (int i = 0; i < curvedUIInfos.Count; i++) { if (enterCurrent) curvedUIInfos[i].OpenUIInfo(); else curvedUIInfos[i].CloseUIInfo(); } } } public void ExitState() { for (int i = 0; i < curvedUIInfos.Count; i++) { curvedUIInfos[i].CloseUIInfo(); } } public void HalfQuit() { } }