コード例 #1
0
 /// <summary>
 /// 其他 once at point
 /// </summary>
 /// <param name="clipName"></param>
 /// <param name="pos"></param>
 public void playAtPoint(string clipName, Vector3 pos)
 {
     AudioClipMgr.getAudioClip(clipName, (clip) =>
     {
         playClipAtPoint(clip, pos);
     });
 }
コード例 #2
0
 /// <summary>
 /// 主角
 /// </summary>
 /// <param name="clipName"></param>
 public void playRoleAudio(string clipName)
 {
     if (RoleAudioListener != null)
     {
         AudioClipMgr.getAudioClip(clipName, playRoleOneShot);
     }
 }