Added Dohya

This commit is contained in:
2026-08-29 13:34:57 +03:00
parent f6a7547e84
commit 9f87122a34
1478 changed files with 963649 additions and 35753 deletions
@@ -0,0 +1,29 @@
using UnityEngine;
using System.Collections;
public class PlayRandomSound : MonoBehaviour {
public AudioSource randomSound;
public AudioClip[] audioSources;
public int clipDelay = 5;
// Use this for initialization
void Start () {
StartAudio ();
}
void StartAudio()
{
Invoke ("RandomSoundness", clipDelay);
}
void RandomSoundness()
{
randomSound.clip = audioSources[Random.Range(0, audioSources.Length)];
randomSound.Play ();
StartAudio ();
}
}