public void StopFollowing() { if (thisProcess != null && thisProcess.IsRunning()) { thisProcess.Stop(); } thisProcess = null; }
public ConstArg( IProcessManager processManager, float time, IFollowWaypointProcess followProcess, AnimationCurve speedCurve ) : base( processManager, ProcessConstraint.ExpireTime, time ) { thisFollowProcess = followProcess; thisSpeedCurve = speedCurve; }
public void SmoothStart() { StopFollowing(); StopChangeSpeed(); thisProcess = CreateFollowProcess(); thisProcess.SetTimeScale(0f); thisProcess.Run(); thisChangeSpeedProcess = thisSlickBowShootingProcessFactory.CreateWaypointsFollowerChangeSpeedProcess( thisProcess, thisTypedAdaptor.GetSmoothStartTime(), thisTypedAdaptor.GetSmoothStartCurve() ); thisChangeSpeedProcess.Run(); }
public IWaypointsFollowerChangeSpeedProcess CreateWaypointsFollowerChangeSpeedProcess( IFollowWaypointProcess followProcess, float time, AnimationCurve speedCurve ) { WaypointsFollowerChangeSpeedProcess.IConstArg arg = new WaypointsFollowerChangeSpeedProcess.ConstArg( thisProcessManager, time, followProcess, speedCurve ); return(new WaypointsFollowerChangeSpeedProcess(arg)); }
public void StartFollowing() { StopFollowing(); thisProcess = CreateFollowProcess(); thisProcess.Run(); }