using System.Collections; using System.Collections.Generic; using BigSpace.Logic; using BigSpace.XRCore.Event; using UnityEngine; public class QuadCtr : MonoBehaviour { public List listQuad; // Start is called before the first frame update void Start() { GlobalEventMgr.Listen(GameEvent.EventHideQuad, GameDataManage_EventHideQuad); } void GameDataManage_EventHideQuad() { if (listQuad != null) { for (int i = 0; i < listQuad.Count; i++) { listQuad[i].SetActive(false); } } } }