private IEnumerator DeleySE(float time, SEenum se, float volume) { yield return(new WaitForSeconds(time)); //停止 audioSource.PlayOneShot(SEList[(int)se], volume); }
public void PlaySE(SEenum se, float volume) { audioSource.PlayOneShot(SEList[(int)se], volume); }
public void PlaySE(SEenum se, float volume, float time) { StartCoroutine(DeleySE(time, se, volume)); }
public void PlaySE(SEenum se) { audioSource.PlayOneShot(SEList[(int)se]); }