コード例 #1
0
 public static void Play(this AudioObject ao, Transform targetToFollow, out MultiAudioSource audioSource)
 {
     audioSource = MultiAudioManager.PlayAudioObject(ao, targetToFollow);
 }
コード例 #2
0
 public static void Play(this AudioObject ao, int channel, Transform targetToFollow)
 {
     MultiAudioManager.PlayAudioObject(ao, channel, targetToFollow);
 }
コード例 #3
0
        //

        public static void Play(this AudioObject ao, Vector3 position, out MultiAudioSource audioSource)
        {
            audioSource = MultiAudioManager.PlayAudioObject(ao, position);
        }
コード例 #4
0
        public static void PlayIgnoringPause(this AudioObject ao, Vector3 position)
        {
            MultiAudioSource source = MultiAudioManager.PlayAudioObject(ao, position);

            source.IgnoreListenerPause = true;
        }
コード例 #5
0
        public static void PlayIgnoringPause(this AudioObject ao, Transform trf)
        {
            MultiAudioSource source = MultiAudioManager.PlayAudioObject(ao, trf);

            source.IgnoreListenerPause = true;
        }
コード例 #6
0
 public static void PlayWithDifferentPitch(this AudioObject ao, int channel, Transform targetToFollow, float pitchMultiplier)
 {
     MultiAudioManager.PlayAudioObject(ao, channel, targetToFollow).PitchOverride = ao.pitch * pitchMultiplier;
 }
コード例 #7
0
 public static void PlayWithDifferentPitch(this AudioObject ao, int channel, Vector3 position, float pitchMultiplier)
 {
     MultiAudioManager.PlayAudioObject(ao, channel, position).PitchOverride = ao.pitch * pitchMultiplier;
 }
コード例 #8
0
        public static void Play(this AudioObject ao, int channel, Vector3 position, MultiAudioManager.UpdateModes updateMode)
        {
            MultiAudioSource _source = MultiAudioManager.PlayAudioObject(ao, channel, position);

            _source.PlayUpdateMode = updateMode;
        }
コード例 #9
0
        public static void Play(this AudioObject ao, Transform targetToFollow, MultiAudioManager.UpdateModes updateMode)
        {
            MultiAudioSource _source = MultiAudioManager.PlayAudioObject(ao, targetToFollow);

            _source.PlayUpdateMode = updateMode;
        }
コード例 #10
0
 public static void Play(this AudioObject ao, int channel, Vector3 position)
 {
     MultiAudioManager.PlayAudioObject(ao, channel, position);
 }