コード例 #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]);
 }