This commit is contained in:
kridoo
2025-09-30 17:21:50 +08:00
parent 66faac5b28
commit 4b527795f7
24 changed files with 28552 additions and 28790 deletions

View File

@@ -4,11 +4,13 @@ using UnityEngine;
public class ColliderPlay : MonoBehaviour
{
public bool isRepeat = true;
bool isCanPlay = true;
AudioSource source;
public Animator animator;
//public Animator animator2;
// Start is called before the first frame update
void Start()
@@ -22,11 +24,25 @@ public class ColliderPlay : MonoBehaviour
{
if (!isCanPlay) return;
if (source != null)
source.Play();
if (!isRepeat)
{
isCanPlay = false;
if(animator != null)
{
source.Play();
animator.Play("zr_2_shiyi");
}
else
{
source.Play();
if (!isRepeat)
{
isCanPlay = false;
}
}
}
}
}
}

View File

@@ -5,6 +5,8 @@ using BigSpace.XRCore.Event;
using BigSpace.XRCore.RunningScene;
using Unity.XR.PXR;
using UnityEngine;
using static Unity.VisualScripting.Member;
using UnityEngine.UIElements;
public class PlayJiaGuAnimator : MonoBehaviour
{
@@ -70,8 +72,13 @@ public class PlayJiaGuAnimator : MonoBehaviour
oneIsRun = true;
GlobalEventMgr.Dispatch(GameEvent.EventHideTuchJiaGu); //ֻ<><D6BB><EFBFBD><EFBFBD>һ<EFBFBD>Σ<EFBFBD><CEA3>ر<EFBFBD><D8B1><EFBFBD><EFBFBD>еĿɴ<C4BF><C9B4><EFBFBD><EFBFBD>׹<EFBFBD><D7B9><EFBFBD>ײ
if (audio_HuiDa != null)
{
audio_HuiDa.Play();
}
}
}
void GameDataManage_EventHideTuchJiaGu()