16 lines
434 B
C#
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);
|
|
}
|
|
}
|
|
}
|