Beispiel #1
0
 public void Tick(float d)
 {
     if (this.IsCurrentlyMoving)
     {
         BeziersMovementJobManager.Get().EnsureCalculationIsDone();
         if (this.BeziersMovementPositionState.MovementEnded)
         {
             this.StopBeziersMovement();
         }
     }
 }
Beispiel #2
0
 public void Destroy()
 {
     BeziersMovementJobManager.Get().OnBeziersMovementSystemDestroyed(this);
 }
Beispiel #3
0
 public BeziersMovementSystem(BeziersControlPointsBuildInput BeziersControlPointsBuildInput, Action <BeziersMovementSystem> OnMovementStop = null)
 {
     this.BeziersControlPointsBuildInput = BeziersControlPointsBuildInput;
     this.OnMovementEndEvent            += OnMovementStop;
     BeziersMovementJobManager.Get().OnBeziersMovementSystemCreated(this);
 }