/// --------------------------------------------- /// Ultimate Character Controller /// Copyright (c) Opsive. All Rights Reserved. /// https://www.opsive.com /// --------------------------------------------- namespace Opsive.UltimateCharacterController.Items.AnimatorAudioStates { using UnityEngine; /// /// The MatchingRecoil state will return the same state index as what was retrieved by the use state selector. /// public class MatchingRecoil : RecoilAnimatorAudioStateSelector { /// /// Returns the current state index. -1 indicates this index is not set by the class. /// /// The current state index. public override int GetStateIndex() { return m_UseStateIndex; } } }