首次提交

This commit is contained in:
Bob.Song
2026-03-05 18:07:55 +08:00
commit e125bb869e
4534 changed files with 563920 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using UnityEngine;
public class WaterSplash : MonoBehaviour
{
private AudioSource audioSource;
public AudioClip[] soundsClip;
private void Start()
{
audioSource = GetComponent<AudioSource>();
if (soundsClip.Length != 0)
{
int num = Random.Range(1, soundsClip.Length);
audioSource.clip = soundsClip[num];
audioSource.PlayOneShot(audioSource.clip, transform.localScale.magnitude * 0.3f);
}
}
}