public EasyAnimationStateBlend(EasyAnimationStateManager stateManager, EasyBlendTree tree, PlayableGraph graph, AnimationMixerPlayable mixer) { StateName = tree.name; for (int i = 0; i < tree.BlendMotions.Count; i++) { var clip = tree.BlendMotions[i].Motion as AnimationClip; string animationName = tree.name + "_" + clip.name + "_" + i; var state = stateManager.Find(animationName); _maps.Add(new Map(state, tree.BlendMotions[i])); } }
public EasyAnimationPlayable() { _stateManager = new EasyAnimationStateManager(); }