1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user