using UnityEngine; using BigSpace.Logic; using BigSpace.XRCore.Event; public class LeavePlayEnterControll : MonoBehaviour { private void OnTriggerEnter(Collider other) { Debug.Log("ÀëÏßµØÍ¼ÉϵÄÅöײ:" + other.gameObject.name); if (other.gameObject.name == "XROriginHands" || other.gameObject.name == "Main Camera") { GlobalEventMgr.Dispatch(GameEvent.EventHideLeavePlay); } } }