Beispiel #1
0
            public static NodeState TryGetState(DistortionMeshPoint point, Animation animation)
            {
                point.Animators.TryFind("Position", out Animator <Vector2> positionAnimator, animation.Id);
                point.Animators.TryFind("Color", out Animator <Color4> colorAnimator, animation.Id);

                return(positionAnimator != null || colorAnimator != null ? new DistortionMeshPointState(point) : null);
            }
Beispiel #2
0
 private DistortionMeshPointState(DistortionMeshPoint point)
 {
     this.point = point;
     position   = wantedPosition = point.Position;
     color      = wantedColor = point.Color;
 }