29 lines
610 B
C#
29 lines
610 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using BigSpace.Logic;
|
|
using BigSpace.XRCore.Event;
|
|
using UnityEngine;
|
|
|
|
public class QuadCtr : MonoBehaviour
|
|
{
|
|
public List<GameObject> 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);
|
|
}
|
|
}
|
|
}
|
|
}
|