// ----------------------------------------------------------------------
        #region Constructor

        // Default constructor.
        public MyAnimationController()
        {
            m_layers = new List <MyAnimationStateMachine>(1);
            m_tableLayerNameToIndex = new Dictionary <string, int>(1);
            Variables         = new MyAnimationVariableStorage();
            ResultBonesPool   = new MyResultBonesPool();
            InverseKinematics = new MyAnimationInverseKinematics();
            FrameCounter      = 0;
            IkUpdateEnabled   = true; // turning off IK part (unfinished)
        }
        // ----------------------------------------------------------------------
        #region Constructor

        // Default constructor.
        public MyAnimationController()
        {
            m_layers = new List<MyAnimationStateMachine>(1);
            m_tableLayerNameToIndex = new Dictionary<string, int>(1);
            Variables = new MyAnimationVariableStorage();
            ResultBonesPool = new MyResultBonesPool();
            InverseKinematics = new MyAnimationInverseKinematics();
            FrameCounter = 0;
            IkUpdateEnabled = true; // turning off IK part (unfinished)
        }