调整目录结构

This commit is contained in:
2025-08-29 09:11:08 +08:00
parent efb64ce7bc
commit 1fff9db9ca
351 changed files with 304 additions and 215 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);
}
}
}