Пример #1
0
 // For logic state
 public void AddStatePlayable(LogicState state, LogicMotionMatchingLayer layer)
 {
     state.SetPlayable(AnimationMixerPlayable.Create(this.graph));
     layer.GetPlayable().AddInput(state.GetPlayable(), 0);
 }
Пример #2
0
 // For Logic layer
 public void AddLayerPlayable(LogicMotionMatchingLayer layer)
 {
     layer.SetPlayable(AnimationMixerPlayable.Create(this.graph, 0, true));
     layerMixer.AddInput(layer.GetPlayable(), 0, 1f);
 }