/************************************************************************************************************************/ private void Awake() { // Start paused at the beginning of the animation. _Animancer.Play(_WakeUp); _Animancer.Playable.Evaluate(); _Animancer.Playable.PauseGraph(); // Create the locomotion state but don't do anything with it yet. _Animancer.GetOrCreateState(_Locomotion); // Cache the delegates we will use with the OnEnd event so we don't allocate garbage every time. _PauseGraph = _Animancer.Playable.PauseGraph; _FadeToMovement = () => _Animancer.Transition(_Locomotion); }