private PlaySfx ( |
||
_clip | ||
return | IEnumerator |
IEnumerator PlaySfx(AudioClip _clip)
{
/* 既存のサウンド発生関数はコメントアウト
GetComponent<AudioSource>().PlayOneShot (_clip, 0.9f);
yield return null;*/
// publicのサウンド関数を呼び出す
_gameMgr.PlaySfx (firePos.position, _clip);
yield return null;
}