public StateLayer(int layerIndex, PlayableGraph graph, PlayableAnimatorParameter param)
            {
                this.layerIndex = layerIndex;
                m_States        = new List <StateInfo>();
                m_Graph         = graph;
                m_Params        = param;
                m_Mixer         = AnimationMixerPlayable.Create(m_Graph, 1, true);
                //isLayerDirty = true;

                _lastParamValue = new Dictionary <string, float>();
            }
        public PlayableStateController(PlayableGraph graph)
        {
            m_Params = new PlayableAnimatorParameter();

            m_StateLayers = new List <StateLayer>();

            m_LayerMixer = AnimationLayerMixerPlayable.Create(graph, 1);
            m_LayerMixer.SetInputWeight(0, 1f);

            var layer = new StateLayer(0, graph, m_Params);

            layer.SetPlayableOutput(0, layer.layerIndex, m_LayerMixer);
            m_StateLayers.Add(layer);     // 添加默认层

            m_Graph = graph;
        }