From 1c9985d176b9dd807c82e509ec60c88424370696 Mon Sep 17 00:00:00 2001 From: Koji Hasegawa Date: Sun, 5 Jan 2025 07:13:34 +0900 Subject: [PATCH 1/2] Rename parameter/variable from token to cancellationToken --- Runtime/Agents/AbstractAgent.cs | 4 ++-- Runtime/Agents/DoNothingAgent.cs | 6 +++--- Runtime/Agents/ErrorHandlerAgent.cs | 4 ++-- Runtime/Agents/OneTimeAgent.cs | 4 ++-- Runtime/Agents/ParallelCompositeAgent.cs | 4 ++-- Runtime/Agents/RepeatAgent.cs | 4 ++-- Runtime/Agents/SerialCompositeAgent.cs | 4 ++-- Runtime/Agents/TerminateAgent.cs | 2 +- Runtime/Agents/TimeBombAgent.cs | 7 ++++--- Runtime/Agents/UGUIEmergencyExitAgent.cs | 6 +++--- Runtime/Agents/UGUIMonkeyAgent.cs | 4 ++-- Runtime/Agents/UGUIPlaybackAgent.cs | 8 ++++---- Runtime/Launcher.cs | 14 ++++++++------ Tests/Runtime/Agents/DoNothingAgentTest.cs | 8 ++++---- Tests/Runtime/Agents/OneTimeAgentTest.cs | 8 ++++---- Tests/Runtime/Agents/ParallelCompositeAgentTest.cs | 8 ++++---- Tests/Runtime/Agents/RepeatAgentTest.cs | 12 ++++++------ Tests/Runtime/Agents/SerialCompositeAgentTest.cs | 12 ++++++------ Tests/Runtime/Agents/UGUIMonkeyAgentTest.cs | 12 ++++++------ Tests/Runtime/Agents/UGUIPlaybackAgentTest.cs | 8 ++++---- 20 files changed, 71 insertions(+), 68 deletions(-) diff --git a/Runtime/Agents/AbstractAgent.cs b/Runtime/Agents/AbstractAgent.cs index da903d9..ed3c678 100644 --- a/Runtime/Agents/AbstractAgent.cs +++ b/Runtime/Agents/AbstractAgent.cs @@ -51,8 +51,8 @@ public ITerminatable AutopilotInstance /// /// Run agent /// - /// + /// /// - public abstract UniTask Run(CancellationToken token); + public abstract UniTask Run(CancellationToken cancellationToken); } } diff --git a/Runtime/Agents/DoNothingAgent.cs b/Runtime/Agents/DoNothingAgent.cs index aa28cf4..936e5ba 100644 --- a/Runtime/Agents/DoNothingAgent.cs +++ b/Runtime/Agents/DoNothingAgent.cs @@ -20,7 +20,7 @@ public class DoNothingAgent : AbstractAgent public long lifespanSec; /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { Logger.Log($"Enter {this.name}.Run()"); @@ -29,11 +29,11 @@ public override async UniTask Run(CancellationToken token) if (lifespanSec > 0) { await UniTask.Delay(TimeSpan.FromSeconds(lifespanSec), ignoreTimeScale: true, - cancellationToken: token); + cancellationToken: cancellationToken); } else { - await UniTask.WaitWhile(() => true, cancellationToken: token); // Wait indefinitely + await UniTask.WaitWhile(() => true, cancellationToken: cancellationToken); // Wait indefinitely } } finally diff --git a/Runtime/Agents/ErrorHandlerAgent.cs b/Runtime/Agents/ErrorHandlerAgent.cs index f2cf0e4..2b57407 100644 --- a/Runtime/Agents/ErrorHandlerAgent.cs +++ b/Runtime/Agents/ErrorHandlerAgent.cs @@ -76,7 +76,7 @@ private static void ResetInstances() } } - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { try { @@ -86,7 +86,7 @@ public override async UniTask Run(CancellationToken token) Application.logMessageReceivedThreaded += this.HandleLog; - await UniTask.WaitWhile(() => true, cancellationToken: token); + await UniTask.WaitWhile(() => true, cancellationToken: cancellationToken); } finally { diff --git a/Runtime/Agents/OneTimeAgent.cs b/Runtime/Agents/OneTimeAgent.cs index edf28f3..3f199d3 100644 --- a/Runtime/Agents/OneTimeAgent.cs +++ b/Runtime/Agents/OneTimeAgent.cs @@ -34,7 +34,7 @@ public static void ResetExecutedFlag() } /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { if (WasExecuted) { @@ -50,7 +50,7 @@ public override async UniTask Run(CancellationToken token) agent.Random = Random; // This Agent does not consume pseudo-random numbers, so passed on as is. try { - await agent.Run(token); + await agent.Run(cancellationToken); } finally { diff --git a/Runtime/Agents/ParallelCompositeAgent.cs b/Runtime/Agents/ParallelCompositeAgent.cs index e6dfa1e..4060991 100644 --- a/Runtime/Agents/ParallelCompositeAgent.cs +++ b/Runtime/Agents/ParallelCompositeAgent.cs @@ -16,7 +16,7 @@ namespace DeNA.Anjin.Agents public class ParallelCompositeAgent : AbstractCompositeAgent { /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { Logger.Log($"Enter {this.name}.Run()"); @@ -26,7 +26,7 @@ public override async UniTask Run(CancellationToken token) { agent.Logger = Logger; agent.Random = RandomFactory.CreateRandom(); - tasks.Add(agent.Run(token)); + tasks.Add(agent.Run(cancellationToken)); } try diff --git a/Runtime/Agents/RepeatAgent.cs b/Runtime/Agents/RepeatAgent.cs index 15934f6..c8d0d61 100644 --- a/Runtime/Agents/RepeatAgent.cs +++ b/Runtime/Agents/RepeatAgent.cs @@ -22,7 +22,7 @@ public class RepeatAgent : AbstractAgent /// [SuppressMessage("Blocker Bug", "S2190:Recursion should not be infinite")] [SuppressMessage("ReSharper", "FunctionNeverReturns")] - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { Logger.Log($"Enter {this.name}.Run()"); @@ -32,7 +32,7 @@ public override async UniTask Run(CancellationToken token) { while (true) // Note: This agent is not terminate myself { - await agent.Run(token); + await agent.Run(cancellationToken); } } finally diff --git a/Runtime/Agents/SerialCompositeAgent.cs b/Runtime/Agents/SerialCompositeAgent.cs index 15ba168..3b8d6a4 100644 --- a/Runtime/Agents/SerialCompositeAgent.cs +++ b/Runtime/Agents/SerialCompositeAgent.cs @@ -15,7 +15,7 @@ namespace DeNA.Anjin.Agents public class SerialCompositeAgent : AbstractCompositeAgent { /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { Logger.Log($"Enter {this.name}.Run()"); @@ -25,7 +25,7 @@ public override async UniTask Run(CancellationToken token) { agent.Logger = Logger; agent.Random = RandomFactory.CreateRandom(); - await agent.Run(token); + await agent.Run(cancellationToken); } } finally diff --git a/Runtime/Agents/TerminateAgent.cs b/Runtime/Agents/TerminateAgent.cs index 68f2d40..039395e 100644 --- a/Runtime/Agents/TerminateAgent.cs +++ b/Runtime/Agents/TerminateAgent.cs @@ -77,7 +77,7 @@ public ExitCode ExitCode public string exitMessage = "Terminated by TerminateAgent"; /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { try { diff --git a/Runtime/Agents/TimeBombAgent.cs b/Runtime/Agents/TimeBombAgent.cs index b689922..42ffaa6 100644 --- a/Runtime/Agents/TimeBombAgent.cs +++ b/Runtime/Agents/TimeBombAgent.cs @@ -90,7 +90,7 @@ private void HandleDefuseMessage(string logString, string stackTrace, LogType ty } /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { Logger.Log($"Enter {this.name}.Run()"); @@ -98,7 +98,8 @@ public override async UniTask Run(CancellationToken token) { using (_agentCts = new CancellationTokenSource()) // To cancel only the Working Agent. { - using (var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(token, _agentCts.Token)) + using (var linkedCts = + CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _agentCts.Token)) { try { @@ -119,7 +120,7 @@ public override async UniTask Run(CancellationToken token) } catch (OperationCanceledException) { - if (token.IsCancellationRequested) // The parent was cancelled. + if (cancellationToken.IsCancellationRequested) // The parent was cancelled. { throw; } diff --git a/Runtime/Agents/UGUIEmergencyExitAgent.cs b/Runtime/Agents/UGUIEmergencyExitAgent.cs index 222eaa9..6b1876c 100644 --- a/Runtime/Agents/UGUIEmergencyExitAgent.cs +++ b/Runtime/Agents/UGUIEmergencyExitAgent.cs @@ -36,7 +36,7 @@ public class UGUIEmergencyExitAgent : AbstractAgent private IScreenshotFilenameStrategy _filenameStrategy; /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { Logger.Log($"Enter {this.name}.Run()"); this._filenameStrategy = new TwoTieredCounterStrategy(this.name); @@ -58,11 +58,11 @@ public override async UniTask Run(CancellationToken token) { if (selectables[i].TryGetComponent(out var emergencyExit)) { - await ClickEmergencyExitButton(emergencyExit, token); + await ClickEmergencyExitButton(emergencyExit, cancellationToken); } } - await UniTask.Delay(intervalMillis, ignoreTimeScale: true, cancellationToken: token); + await UniTask.Delay(intervalMillis, ignoreTimeScale: true, cancellationToken: cancellationToken); } } finally diff --git a/Runtime/Agents/UGUIMonkeyAgent.cs b/Runtime/Agents/UGUIMonkeyAgent.cs index 310feb3..f0ba28c 100644 --- a/Runtime/Agents/UGUIMonkeyAgent.cs +++ b/Runtime/Agents/UGUIMonkeyAgent.cs @@ -99,7 +99,7 @@ public class UGUIMonkeyAgent : AbstractAgent ScreenCapture.StereoScreenCaptureMode.LeftEye; /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { Logger.Log($"Enter {this.name}.Run()"); @@ -136,7 +136,7 @@ public override async UniTask Run(CancellationToken token) try { - await Monkey.Run(config, token); + await Monkey.Run(config, cancellationToken); } catch (TimeoutException e) { diff --git a/Runtime/Agents/UGUIPlaybackAgent.cs b/Runtime/Agents/UGUIPlaybackAgent.cs index 65174a6..2b4466b 100644 --- a/Runtime/Agents/UGUIPlaybackAgent.cs +++ b/Runtime/Agents/UGUIPlaybackAgent.cs @@ -29,7 +29,7 @@ public class UGUIPlaybackAgent : AbstractAgent public TextAsset recordedJson; /// - public override async UniTask Run(CancellationToken token) + public override async UniTask Run(CancellationToken cancellationToken) { try { @@ -40,7 +40,7 @@ public override async UniTask Run(CancellationToken token) throw new NullReferenceException("recordingJson is null"); } - await Play(recordedJson, token); + await Play(recordedJson, cancellationToken); // Note: If playback is not possible, AQA will output a LogError and exit. You must handle LogError with the ErrorHandlerAgent. } finally @@ -85,7 +85,7 @@ private static void StoreScreenshots(string dst) } } - private static IEnumerator Play(TextAsset recordingJson, CancellationToken token) + private static IEnumerator Play(TextAsset recordingJson, CancellationToken cancellationToken) { if (RecordedPlaybackController.Exists()) { @@ -100,7 +100,7 @@ private static IEnumerator Play(TextAsset recordingJson, CancellationToken token // Use the fact that RecordedPlaybackController._instance becomes null when playback is finished. // This behavior is from Automated QA v0.8.1. May change in the future { - token.ThrowIfCancellationRequested(); + cancellationToken.ThrowIfCancellationRequested(); yield return null; } // Note: Driver.Perform.PlayRecording()を使わない理由は以下 diff --git a/Runtime/Launcher.cs b/Runtime/Launcher.cs index 11b0292..8aa1be4 100644 --- a/Runtime/Launcher.cs +++ b/Runtime/Launcher.cs @@ -32,8 +32,9 @@ public static class Launcher /// Launch autopilot from Play Mode tests or runtime (e.g., debug menu). /// /// Autopilot settings - /// Task cancellation token - public static async UniTask LaunchAutopilotAsync(AutopilotSettings settings, CancellationToken token = default) + /// Task cancellation token + public static async UniTask LaunchAutopilotAsync(AutopilotSettings settings, + CancellationToken cancellationToken = default) { #if UNITY_EDITOR if (!EditorApplication.isPlaying) @@ -51,7 +52,7 @@ public static async UniTask LaunchAutopilotAsync(AutopilotSettings settings, Can state.settings = settings; LaunchAutopilot().Forget(); - await UniTask.WaitUntil(() => !state.IsRunning, cancellationToken: token); + await UniTask.WaitUntil(() => !state.IsRunning, cancellationToken: cancellationToken); #if UNITY_INCLUDE_TESTS // Launch from Play Mode tests @@ -73,8 +74,9 @@ public static async UniTask LaunchAutopilotAsync(AutopilotSettings settings, Can /// Launch autopilot from Play Mode tests or runtime (e.g., debug menu). /// /// Asset file path for autopilot settings. When running the player, it reads from Resources - /// Task cancellation token - public static async UniTask LaunchAutopilotAsync(string settingsPath, CancellationToken token = default) + /// Task cancellation token + public static async UniTask LaunchAutopilotAsync(string settingsPath, + CancellationToken cancellationToken = default) { #if UNITY_EDITOR var settings = AssetDatabase.LoadAssetAtPath(settingsPath); @@ -86,7 +88,7 @@ public static async UniTask LaunchAutopilotAsync(string settingsPath, Cancellati throw new ArgumentException($"Autopilot settings not found: {settingsPath}"); } - await LaunchAutopilotAsync(settings, token); + await LaunchAutopilotAsync(settings, cancellationToken); } /// diff --git a/Tests/Runtime/Agents/DoNothingAgentTest.cs b/Tests/Runtime/Agents/DoNothingAgentTest.cs index 6ea92a9..e89d401 100644 --- a/Tests/Runtime/Agents/DoNothingAgentTest.cs +++ b/Tests/Runtime/Agents/DoNothingAgentTest.cs @@ -24,8 +24,8 @@ public async Task Run_cancelTask_stopAgent() agent.lifespanSec = 0; // Expect indefinite execution var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.NextFrame(); Object.DestroyImmediate(gameObject); @@ -48,8 +48,8 @@ public async Task Run_lifespanPassed_stopAgent() using (var cancellationTokenSource = new CancellationTokenSource()) { - var token = cancellationTokenSource.Token; - var task = agent.Run(token); + var cancellationToken = cancellationTokenSource.Token; + var task = agent.Run(cancellationToken); await UniTask.Delay(2000); // Consider overhead Assert.That(task.Status, Is.EqualTo(UniTaskStatus.Succeeded)); diff --git a/Tests/Runtime/Agents/OneTimeAgentTest.cs b/Tests/Runtime/Agents/OneTimeAgentTest.cs index 7bb83d7..d263771 100644 --- a/Tests/Runtime/Agents/OneTimeAgentTest.cs +++ b/Tests/Runtime/Agents/OneTimeAgentTest.cs @@ -39,8 +39,8 @@ public async Task Run_cancelTask_stopAgent() agent.agent = childAgent; var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.NextFrame(); Object.DestroyImmediate(gameObject); @@ -65,8 +65,8 @@ public async Task Run_markWasExecuted() using (var cancellationTokenSource = new CancellationTokenSource()) { - var token = cancellationTokenSource.Token; - var task = agent.Run(token); + var cancellationToken = cancellationTokenSource.Token; + var task = agent.Run(cancellationToken); await UniTask.Delay(500); // Consider overhead Assert.That(task.Status, Is.EqualTo(UniTaskStatus.Succeeded)); diff --git a/Tests/Runtime/Agents/ParallelCompositeAgentTest.cs b/Tests/Runtime/Agents/ParallelCompositeAgentTest.cs index 0c90864..e2c65b4 100644 --- a/Tests/Runtime/Agents/ParallelCompositeAgentTest.cs +++ b/Tests/Runtime/Agents/ParallelCompositeAgentTest.cs @@ -42,8 +42,8 @@ public async Task Run_cancelTask_stopAgent() agent.agents = new List() { firstChildAgent, secondChildAgent, lastChildAgent }; var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.NextFrame(); Object.DestroyImmediate(gameObject); @@ -75,8 +75,8 @@ public async Task Run_lifespanPassed_stopAgent() using (var cancellationTokenSource = new CancellationTokenSource()) { - var token = cancellationTokenSource.Token; - var task = agent.Run(token); + var cancellationToken = cancellationTokenSource.Token; + var task = agent.Run(cancellationToken); await UniTask.Delay(1000); // Consider overhead Assert.That(task.Status, Is.EqualTo(UniTaskStatus.Succeeded)); diff --git a/Tests/Runtime/Agents/RepeatAgentTest.cs b/Tests/Runtime/Agents/RepeatAgentTest.cs index c263ca7..4e8a592 100644 --- a/Tests/Runtime/Agents/RepeatAgentTest.cs +++ b/Tests/Runtime/Agents/RepeatAgentTest.cs @@ -36,8 +36,8 @@ public async Task Run_cancelTask_stopAgent() agent.agent = childAgent; var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.NextFrame(); Object.DestroyImmediate(gameObject); @@ -61,8 +61,8 @@ public async Task Run_childAgentRunRepeating() agent.agent = childAgent; var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.Delay(500); Object.DestroyImmediate(gameObject); @@ -87,8 +87,8 @@ public async Task Run_setLoggerAndRandomInstanceToChildAgent() agent.agent = childAgent; var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.Delay(500); Object.DestroyImmediate(gameObject); diff --git a/Tests/Runtime/Agents/SerialCompositeAgentTest.cs b/Tests/Runtime/Agents/SerialCompositeAgentTest.cs index 343bedc..7cd3899 100644 --- a/Tests/Runtime/Agents/SerialCompositeAgentTest.cs +++ b/Tests/Runtime/Agents/SerialCompositeAgentTest.cs @@ -42,8 +42,8 @@ public async Task Run_cancelTask_stopAgent() agent.agents = new List() { firstChildAgent, secondChildAgent, lastChildAgent }; var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.NextFrame(); Object.DestroyImmediate(gameObject); @@ -75,8 +75,8 @@ public async Task Run_lifespanPassed_stopAgent() using (var cancellationTokenSource = new CancellationTokenSource()) { - var token = cancellationTokenSource.Token; - var task = agent.Run(token); + var cancellationToken = cancellationTokenSource.Token; + var task = agent.Run(cancellationToken); await UniTask.Delay(3000); // Consider overhead Assert.That(task.Status, Is.EqualTo(UniTaskStatus.Succeeded)); @@ -104,8 +104,8 @@ public async Task Run_setLoggerAndRandomInstanceToChildAgent() using (var cancellationTokenSource = new CancellationTokenSource()) { - var token = cancellationTokenSource.Token; - var task = agent.Run(token); + var cancellationToken = cancellationTokenSource.Token; + var task = agent.Run(cancellationToken); await UniTask.Delay(3000); // Consider overhead Assert.That(task.Status, Is.EqualTo(UniTaskStatus.Succeeded)); diff --git a/Tests/Runtime/Agents/UGUIMonkeyAgentTest.cs b/Tests/Runtime/Agents/UGUIMonkeyAgentTest.cs index 590589c..74ba4db 100644 --- a/Tests/Runtime/Agents/UGUIMonkeyAgentTest.cs +++ b/Tests/Runtime/Agents/UGUIMonkeyAgentTest.cs @@ -35,8 +35,8 @@ public async Task Run_CancelTask_StopAgent() agent.delayMillis = 100; var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.NextFrame(); Object.DestroyImmediate(gameObject); @@ -61,8 +61,8 @@ public async Task Run_LifespanPassed_StopAgent() using (var cancellationTokenSource = new CancellationTokenSource()) { - var token = cancellationTokenSource.Token; - var task = agent.Run(token); + var cancellationToken = cancellationTokenSource.Token; + var task = agent.Run(cancellationToken); await UniTask.Delay(2000); // Consider overhead Assert.That(task.Status, Is.EqualTo(UniTaskStatus.Succeeded)); @@ -106,8 +106,8 @@ public async Task Run_DefaultScreenshotFilenamePrefix_UseAgentName() using (var cancellationTokenSource = new CancellationTokenSource()) { - var token = cancellationTokenSource.Token; - await agent.Run(token); + var cancellationToken = cancellationTokenSource.Token; + await agent.Run(cancellationToken); } Assert.That(path, Does.Exist); diff --git a/Tests/Runtime/Agents/UGUIPlaybackAgentTest.cs b/Tests/Runtime/Agents/UGUIPlaybackAgentTest.cs index 2ca1047..3f98737 100644 --- a/Tests/Runtime/Agents/UGUIPlaybackAgentTest.cs +++ b/Tests/Runtime/Agents/UGUIPlaybackAgentTest.cs @@ -61,8 +61,8 @@ public async Task Run_CancelTask_StopAgent() #endif var gameObject = new GameObject(); - var token = gameObject.GetCancellationTokenOnDestroy(); - var task = agent.Run(token); + var cancellationToken = gameObject.GetCancellationTokenOnDestroy(); + var task = agent.Run(cancellationToken); await UniTask.NextFrame(); Object.DestroyImmediate(gameObject); @@ -93,8 +93,8 @@ public async Task Run_PlaybackFinished_StopAgent() using (var cancellationTokenSource = new CancellationTokenSource()) { - var token = cancellationTokenSource.Token; - var task = agent.Run(token); + var cancellationToken = cancellationTokenSource.Token; + var task = agent.Run(cancellationToken); await UniTask.Delay(2000); // Consider overhead Assert.That(task.Status, Is.EqualTo(UniTaskStatus.Succeeded)); From 3509038285e5a55446d5782aacb109ff10d9a956 Mon Sep 17 00:00:00 2001 From: Koji Hasegawa Date: Sun, 5 Jan 2025 07:19:46 +0900 Subject: [PATCH 2/2] Fix log message --- Runtime/Autopilot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Autopilot.cs b/Runtime/Autopilot.cs index 6c128a5..c41a67d 100644 --- a/Runtime/Autopilot.cs +++ b/Runtime/Autopilot.cs @@ -92,7 +92,7 @@ private void Start() _logger = _settings.LoggerAsset.Logger; // Note: Set a default logger if no logger settings. see: AutopilotSettings.Initialize method. - _logger.Log("Launching Autopilot…"); + _logger.Log("Launching Autopilot..."); if (!int.TryParse(_settings.randomSeed, out var seed)) {