Exemplo n.º 1
0
 public SightVisualFeedbackGameObjectV2(GameObject AssociatedGameObject,
                                        A_AnimationPlayableDefinition SightVisualFeedbackAnimation)
 {
     this.AssociatedGameObjectPtr   = AssociatedGameObject.Allocate();
     this.MeshRendererPtr           = AssociatedGameObject.GetComponentInChildren <MeshRenderer>().Allocate();
     this.AnimatorPlayableObjectPtr = new AnimatorPlayableObject("SightVisualFeedbackGameObject", AssociatedGameObject.GetComponent <Animator>()).Allocate();
     this.AnimatorPlayableObjectPtr.GetValue().PlayAnimation(0, SightVisualFeedbackAnimation.GetAnimationInput());
     this.AnimatorPlayableObjectPtr.GetValue().GlobalPlayableGraph.SetTimeUpdateMode(DirectorUpdateMode.UnscaledGameTime);
 }
Exemplo n.º 2
0
 public void PlayAnimation(A_AnimationPlayableDefinition LocomotionAnimationTree)
 {
     this.AnimationControllerRef.PlayAnimationV2(AnimationLayer, LocomotionAnimationTree.GetAnimationInput());
 }
Exemplo n.º 3
0
 public TwoDObjectAnimationPlayableSystem(AnimatorPlayableObject AnimatorPlayableObject, A_AnimationPlayableDefinition Blendtree)
 {
     this.AnimatorPlayableObjectRef = AnimatorPlayableObject;
     AnimatorPlayableObject.PlayAnimation(0, Blendtree.GetAnimationInput());
 }
Exemplo n.º 4
0
 private void Start()
 {
     this.AnimatorPlayableObject = new AnimatorPlayableObject("Test", this.GetComponent <Animator>());
     this.AnimatorPlayableObject.PlayAnimation(0, TwoDBlendTreePlayableDefinition.GetAnimationInput(), null, null);
 }