FireCtrl.PlaySfx C# (CSharp) Method

PlaySfx() private method

private PlaySfx ( AudioClip _clip ) : IEnumerator
_clip UnityEngine.AudioClip
return IEnumerator
    IEnumerator PlaySfx(AudioClip _clip)
    {
        /*	既存のサウンド発生関数はコメントアウト
        GetComponent<AudioSource>().PlayOneShot (_clip, 0.9f);
        yield return null;*/

        // publicのサウンド関数を呼び出す
        _gameMgr.PlaySfx (firePos.position, _clip);
        yield return null;
    }