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