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

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

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

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