Exemple #1
0
 public GroupAnimationEvent(AnimationEventData data, List <AnimationEvent> animEvents, string id) : base(data)
 {
     animationEvents = animEvents;
     this.id         = id;
     actor3Ds        = new List <Actor3D>();
     callbacks       = new List <Action>();
     actor3Ds.Add(data.actor);
     callbacks.Add(data.callback);
 }
Exemple #2
0
 protected AnimationEvent(AnimationEventData animationEventData)
 {
     actor          = animationEventData.actor;
     destination    = animationEventData.destination;
     maxTime        = animationEventData.maxTime;
     smoothing      = animationEventData.smoothing;
     loopMethod     = animationEventData.loopMethod;
     isRelative     = animationEventData.isRelative;
     body           = animationEventData.body;
     callback       = animationEventData.callback;
     resetAfterDone = animationEventData.resetAferDone;
 }
Exemple #3
0
 public RotationEvent(AnimationEventData animationEventData) : base(animationEventData)
 {
     start   = actor.Transform3D.RotationInDegrees;
     process = ApplyAnimation;
 }
Exemple #4
0
 public ScaleEvent(AnimationEventData animationEventData) : base(animationEventData)
 {
     start   = actor.Transform3D.Scale;
     process = ApplyAnimation;
 }
Exemple #5
0
 public MovementEvent(AnimationEventData animationEventData) : base(animationEventData)
 {
     start   = actor.Transform3D.Translation;
     process = ApplyAnimation;
 }