using System.Collections; using System.Collections.Generic; using BigSpace.Logic; using BigSpace.XRCore.Event; using UnityEngine; public class AnimalCatchCtr : MonoBehaviour { ////��ʱ��� //bool isRun = false; //float waitTime = 0.3f; //float runTime = 0; // Start is called before the first frame update void Start() { //�Ѽ�ⷶΧ���������� MeshCollider controll = GameObject.Find("LeaveBoxCollider_201").GetComponent(); AnimalCatchMgr.Instance.SetMeshCollider(controll); } //���ֻ��ץ�ŵ����� public void LeftHandPosCatch(bool isShow) { //if (isShow) //{ // GlobalEventMgr.Dispatch(GameEvent.EventRayStart,1);//1:���� // //Debug.Log("ץȡ����ʶ��ɹ�������"); //} //else //{ // //Debug.Log("�ɿ�����ʶ��ɹ�������"); // //GlobalEventMgr.Dispatch(GameEvent.EventRayQuadOk, false,1); //} } //右手握拳抓取姿势(由 XRI 手势识别驱动 QuadCatchCtr,此回调保留供其他逻辑使用) public void RightHandPosCatch(bool isShow) { } //����ץȡ������������ public void LeftHandCatchPalmUp(bool isShowFont) { //if (isShowFont) //{ // Debug.Log("�������ϻ�ȡ��:"+ AnimalCatchMgr.Instance.leftHandIsCatchObj); // //if(AnimalCatchMgr.Instance.handIsCatchObj) // GlobalEventMgr.Dispatch(GameEvent.EventHandShowFont,1, AnimalCatchMgr.Instance.leftAnimalType); //} } //����ץȡ������������ public void RightHnadCatchPalmUp(bool isShowFont) { if (isShowFont) { Debug.Log("右手面向玩家检测到"); Debug.Log("�������ϻ�ȡ��:" + AnimalCatchMgr.Instance.rightHandIsCatchObj); //if(AnimalCatchMgr.Instance.handIsCatchObj) GlobalEventMgr.Dispatch(GameEvent.EventHandShowFont,2, AnimalCatchMgr.Instance.rightAnimalType); } } }