Files
PrinceOfGlory/Assets/Scripts/Leave/LeavePlayEnterControll.cs
kridoo 6e91a0c7f0 111
2025-09-15 17:32:08 +08:00

16 lines
434 B
C#

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);
}
}
}