1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using ChivaXR;
- using Sirenix.OdinInspector;
- public class ProcessState_CurvedUI : MonoBehaviour, IProcessState
- {
- public List<CurvedUIInfo> curvedUIInfos = new List<CurvedUIInfo>();
- [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()
- {
- }
- }
|