예제 #1
0
 public void StopFlight()
 {
     if (thisFlightProcess != null)
     {
         if (thisFlightProcess.IsRunning())
         {
             thisFlightProcess.Stop();
         }
     }
     thisFlightProcess = null;
 }
예제 #2
0
 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
         );
 }