Example #1
0
 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;
 }
Example #3
0
 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));
 }
Example #5
0
 public void StartFollowing()
 {
     StopFollowing();
     thisProcess = CreateFollowProcess();
     thisProcess.Run();
 }