// Use this for enter state
        public override void OnStateBegin()
        {
            Transform target = cachedTarget;

            if (target != null)
            {
                AudioUtility.PlayClipAtPoint(_Clip, target.position, _Volume, _OutputAudioMixerGroup, _SpatialBlend);
            }
        }
Example #2
0
        protected override void OnExecute()
        {
            Transform target = cachedTarget;

            if (target != null)
            {
                AudioUtility.PlayClipAtPoint(_Clip, target.position, _Volume, _OutputAudioMixerGroup, _SpatialBlend);
            }

            FinishExecute(true);
        }
Example #3
0
 protected override void OnExecute()
 {
     AudioUtility.PlayClipAtPoint(_Clip, _Position.value, _Volume, _OutputAudioMixerGroup, _SpatialBlend);
     FinishExecute(true);
 }
Example #4
0
 // Use this for enter state
 public override void OnStateBegin()
 {
     AudioUtility.PlayClipAtPoint(_Clip, _Position.value, _Volume, _OutputAudioMixerGroup, _SpatialBlend);
 }