123456789101112131415161718192021222324252627282930313233343536 |
- #pragma warning disable CS0649 // Field is never assigned to, and will always have its default value.
- using UnityEngine;
- namespace Animancer.Examples.Events
- {
-
-
-
-
-
-
-
-
- [AddComponentMenu(Strings.ExamplesMenuPrefix + "Footstep Events - Footstep Events Animation")]
- [HelpURL(Strings.DocsURLs.ExampleAPIDocumentation + nameof(Events) + "/" + nameof(FootstepEventsAnimation))]
- public sealed class FootstepEventsAnimation : MonoBehaviour
- {
-
- [SerializeField] private FootstepEvents _FootstepEvents;
- [SerializeField] private AudioSource[] _FootSources;
-
-
- private void Footstep(int foot)
- {
- _FootstepEvents.PlaySound(_FootSources[foot]);
- }
-
- }
- }
|