public CoffeeMovementComponent(string id, ControllerType controllerType, ActivationType activationType,
                                float timePercent, Smoother.SmoothingMethod smoothingMethod, Coffee coffee) : base(id, controllerType,
                                                                                                                   activationType, timePercent, smoothingMethod)
 {
     parent       = coffee;
     coffeeParent = coffee;
 }
Beispiel #2
0
 public PathMovementComponent(string id, ControllerType controllerType, ActivationType activationType,
                              float timePercent, Smoother.SmoothingMethod smoothingMethod) : base(id, controllerType, activationType)
 {
     this.timePercent     = timePercent;
     movementTime         = (int)(GameConstants.MovementCooldown * timePercent * 1000);
     this.smoothingMethod = smoothingMethod;
 }
Beispiel #3
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;
 }
Beispiel #4
0
 public DoorMovementComponent(string id, ControllerType controllerType, ActivationType activationType,
                              float timePercent, Smoother.SmoothingMethod smoothingMethod) : base(id, controllerType, activationType,
                                                                                                  timePercent, smoothingMethod)
 {
 }