/************************************************************************************************************************/

        /// <summary>
        /// Gathers the <see cref="DefaultStateHashes"/> from the current states.
        /// </summary>
        public void GatherDefaultStates()
        {
            var layerCount = Playable.GetLayerCount();
            if (DefaultStateHashes == null || DefaultStateHashes.Length != layerCount)
                DefaultStateHashes = new int[layerCount];

            while (--layerCount >= 0)
                DefaultStateHashes[layerCount] = Playable.GetCurrentAnimatorStateInfo(layerCount).shortNameHash;
        }