Esempio n. 1
0
 void StopChangeSpeed()
 {
     if (thisChangeSpeedProcess != null && thisChangeSpeedProcess.IsRunning())
     {
         thisChangeSpeedProcess.Stop();
     }
     thisChangeSpeedProcess = null;
 }
Esempio n. 2
0
 public void SmoothStop()
 {
     StopChangeSpeed();
     thisChangeSpeedProcess = thisSlickBowShootingProcessFactory.CreateWaypointsFollowerChangeSpeedProcess(
         thisProcess,
         thisTypedAdaptor.GetSmoothStopTime(),
         thisTypedAdaptor.GetSmoothStopCurve()
         );
     thisChangeSpeedProcess.Run();
 }
Esempio n. 3
0
 public void SmoothStart()
 {
     StopFollowing();
     StopChangeSpeed();
     thisProcess = CreateFollowProcess();
     thisProcess.SetTimeScale(0f);
     thisProcess.Run();
     thisChangeSpeedProcess = thisSlickBowShootingProcessFactory.CreateWaypointsFollowerChangeSpeedProcess(
         thisProcess,
         thisTypedAdaptor.GetSmoothStartTime(),
         thisTypedAdaptor.GetSmoothStartCurve()
         );
     thisChangeSpeedProcess.Run();
 }