Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
Untitled diff
생성일
7년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
1 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
47 행
복사
1 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
47 행
복사
public void SimulationUpdate()
public void SimulationUpdate()
{
{
this.RefreshCarCrashDataAfterLoad();
this.RefreshCarCrashDataAfterLoad();
if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track)
if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track)
{
{
this.ApplyQueueOrders();
this.ApplyQueueOrders();
}
}
if (this.mTargetPointSteeringBehaviour == null)
if (this.mTargetPointSteeringBehaviour == null)
{
{
this.mTargetPointSteeringBehaviour = this.mVehicle.steeringManager.GetBehaviour<TargetPointSteeringBehaviour>();
this.mTargetPointSteeringBehaviour = this.mVehicle.steeringManager.GetBehaviour<TargetPointSteeringBehaviour>();
}
}
switch (this.mStatus)
switch (this.mStatus)
{
{
case SessionStrategy.Status.NoActionRequired:
case SessionStrategy.Status.NoActionRequired:
{
{
SessionDetails.SessionType sessionType = Game.instance.sessionManager.eventDetails.currentSession.sessionType;
SessionDetails.SessionType sessionType = Game.instance.sessionManager.eventDetails.currentSession.sessionType;
복사
복사됨
복사
복사됨
if (sessionType != SessionDetails.SessionType.Race && this.mVehicle.isPlayerDriver && !Game.instance.sessionManager.
isUsingAIForPlayerDrivers
&& (this.mVehicle.performance.fuel.IsOutOfFuel() || this.HasCompletedOrderedLapCount()))
if (sessionType != SessionDetails.SessionType.Race && this.mVehicle.isPlayerDriver && !Game.instance.sessionManager.
isUsingAIForPitting
&& (this.mVehicle.performance.fuel.IsOutOfFuel() || this.HasCompletedOrderedLapCount()))
{
{
this.mVehicle.strategy.ReturnToGarage();
this.mVehicle.strategy.ReturnToGarage();
}
}
if (this.mVehicle.timer.hasSeenChequeredFlag)
if (this.mVehicle.timer.hasSeenChequeredFlag)
{
{
this.mVehicle.strategy.ReturnToGarage();
this.mVehicle.strategy.ReturnToGarage();
}
}
break;
break;
}
}
case SessionStrategy.Status.Pitting:
case SessionStrategy.Status.Pitting:
if (Game.instance.sessionManager.flag == SessionManager.Flag.Chequered)
if (Game.instance.sessionManager.flag == SessionManager.Flag.Chequered)
{
{
this.CancelPit();
this.CancelPit();
}
}
if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track && this.mTargetPointSteeringBehaviour.state == TargetPointSteeringBehaviour.State.None)
if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track && this.mTargetPointSteeringBehaviour.state == TargetPointSteeringBehaviour.State.None)
{
{
this.mTargetPointSteeringBehaviour.SetTargetPath(PathController.PathType.PitlaneEntry, true);
this.mTargetPointSteeringBehaviour.SetTargetPath(PathController.PathType.PitlaneEntry, true);
}
}
break;
break;
case SessionStrategy.Status.WaitingForSetupCompletion:
case SessionStrategy.Status.WaitingForSetupCompletion:
this.WaitForSetupCompletion();
this.WaitForSetupCompletion();
break;
break;
case SessionStrategy.Status.PitThruPenalty:
case SessionStrategy.Status.PitThruPenalty:
if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track && this.mTargetPointSteeringBehaviour.state == TargetPointSteeringBehaviour.State.None)
if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track && this.mTargetPointSteeringBehaviour.state == TargetPointSteeringBehaviour.State.None)
{
{
this.mTargetPointSteeringBehaviour.SetTargetPath(PathController.PathType.PitlaneEntry, true);
this.mTargetPointSteeringBehaviour.SetTargetPath(PathController.PathType.PitlaneEntry, true);
}
}
break;
break;
}
}
}
}
저장된 비교 결과
원본
파일 열기
public void SimulationUpdate() { this.RefreshCarCrashDataAfterLoad(); if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track) { this.ApplyQueueOrders(); } if (this.mTargetPointSteeringBehaviour == null) { this.mTargetPointSteeringBehaviour = this.mVehicle.steeringManager.GetBehaviour<TargetPointSteeringBehaviour>(); } switch (this.mStatus) { case SessionStrategy.Status.NoActionRequired: { SessionDetails.SessionType sessionType = Game.instance.sessionManager.eventDetails.currentSession.sessionType; if (sessionType != SessionDetails.SessionType.Race && this.mVehicle.isPlayerDriver && !Game.instance.sessionManager.isUsingAIForPlayerDrivers && (this.mVehicle.performance.fuel.IsOutOfFuel() || this.HasCompletedOrderedLapCount())) { this.mVehicle.strategy.ReturnToGarage(); } if (this.mVehicle.timer.hasSeenChequeredFlag) { this.mVehicle.strategy.ReturnToGarage(); } break; } case SessionStrategy.Status.Pitting: if (Game.instance.sessionManager.flag == SessionManager.Flag.Chequered) { this.CancelPit(); } if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track && this.mTargetPointSteeringBehaviour.state == TargetPointSteeringBehaviour.State.None) { this.mTargetPointSteeringBehaviour.SetTargetPath(PathController.PathType.PitlaneEntry, true); } break; case SessionStrategy.Status.WaitingForSetupCompletion: this.WaitForSetupCompletion(); break; case SessionStrategy.Status.PitThruPenalty: if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track && this.mTargetPointSteeringBehaviour.state == TargetPointSteeringBehaviour.State.None) { this.mTargetPointSteeringBehaviour.SetTargetPath(PathController.PathType.PitlaneEntry, true); } break; } }
수정본
파일 열기
public void SimulationUpdate() { this.RefreshCarCrashDataAfterLoad(); if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track) { this.ApplyQueueOrders(); } if (this.mTargetPointSteeringBehaviour == null) { this.mTargetPointSteeringBehaviour = this.mVehicle.steeringManager.GetBehaviour<TargetPointSteeringBehaviour>(); } switch (this.mStatus) { case SessionStrategy.Status.NoActionRequired: { SessionDetails.SessionType sessionType = Game.instance.sessionManager.eventDetails.currentSession.sessionType; if (sessionType != SessionDetails.SessionType.Race && this.mVehicle.isPlayerDriver && !Game.instance.sessionManager.isUsingAIForPitting && (this.mVehicle.performance.fuel.IsOutOfFuel() || this.HasCompletedOrderedLapCount())) { this.mVehicle.strategy.ReturnToGarage(); } if (this.mVehicle.timer.hasSeenChequeredFlag) { this.mVehicle.strategy.ReturnToGarage(); } break; } case SessionStrategy.Status.Pitting: if (Game.instance.sessionManager.flag == SessionManager.Flag.Chequered) { this.CancelPit(); } if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track && this.mTargetPointSteeringBehaviour.state == TargetPointSteeringBehaviour.State.None) { this.mTargetPointSteeringBehaviour.SetTargetPath(PathController.PathType.PitlaneEntry, true); } break; case SessionStrategy.Status.WaitingForSetupCompletion: this.WaitForSetupCompletion(); break; case SessionStrategy.Status.PitThruPenalty: if (this.mVehicle.pathController.currentPathType == PathController.PathType.Track && this.mTargetPointSteeringBehaviour.state == TargetPointSteeringBehaviour.State.None) { this.mTargetPointSteeringBehaviour.SetTargetPath(PathController.PathType.PitlaneEntry, true); } break; } }
비교하기