public void StopFlight() { if (thisFlightProcess != null) { if (thisFlightProcess.IsRunning()) { thisFlightProcess.Stop(); } } thisFlightProcess = null; }
public void StartFlight() { StopFlight(); thisFlightProcess = thisSlickBowShootingProcessFactory.CreateArrowFlightProcess( this, thisShootingManager.GetFlightSpeed(), thisShootingManager.GetFlightDirection(), thisShootingManager.GetFlightGravity(), thisShootingManager.GetLauncherVelocity(), thisLaunchPoint.GetPosition(), thisShootingManager.GetFlightTime() ); thisFlightProcess.Run(); thisArrowAdaptor.PlayArrowReleaseSound(); thisArrowTrailReserve.ActivateTrailAt( this, thisNormalizedDraw ); }