示例#1
0
    private IEnumerator DeleySE(float time, SEenum se, float volume)
    {
        yield return(new WaitForSeconds(time));  //停止

        audioSource.PlayOneShot(SEList[(int)se], volume);
    }
示例#2
0
 public void PlaySE(SEenum se, float volume)
 {
     audioSource.PlayOneShot(SEList[(int)se], volume);
 }
示例#3
0
 public void PlaySE(SEenum se, float volume, float time)
 {
     StartCoroutine(DeleySE(time, se, volume));
 }
示例#4
0
 public void PlaySE(SEenum se)
 {
     audioSource.PlayOneShot(SEList[(int)se]);
 }