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