diff --git a/Runtime/Reporters/SlackReporter.cs b/Runtime/Reporters/SlackReporter.cs index 0574388..13da3d2 100644 --- a/Runtime/Reporters/SlackReporter.cs +++ b/Runtime/Reporters/SlackReporter.cs @@ -49,7 +49,7 @@ public override async UniTask PostReportAsync( // NOTE: In _sender.send, switch the execution thread to the main thread, so UniTask.WhenAll is meaningless. foreach (var slackChannel in (string.IsNullOrEmpty(settings.slackChannels) ? slackChannels - : settings.slackChannels).Split(",")) + : settings.slackChannels).Split(',')) { if (cancellationToken.IsCancellationRequested) { @@ -59,7 +59,7 @@ public override async UniTask PostReportAsync( await _sender.Send( string.IsNullOrEmpty(settings.slackToken) ? slackToken : settings.slackToken, slackChannel, - mentionSubTeamIDs.Split(","), + mentionSubTeamIDs.Split(','), addHereInSlackMessage, logString, stackTrace, diff --git a/Tests/Runtime/TestDoubles/StubClickAgent.cs b/Tests/Runtime/TestDoubles/StubClickAgent.cs index e03b57e..853e059 100644 --- a/Tests/Runtime/TestDoubles/StubClickAgent.cs +++ b/Tests/Runtime/TestDoubles/StubClickAgent.cs @@ -6,6 +6,7 @@ using DeNA.Anjin.Agents; using UnityEngine; using UnityEngine.EventSystems; +using UnityEngine.SceneManagement; namespace DeNA.Anjin.TestDoubles { @@ -23,7 +24,7 @@ public class StubClickAgent : AbstractAgent /// public override UniTask Run(CancellationToken token) { - foreach (var obj in FindObjectsByType(FindObjectsSortMode.None)) + foreach (var obj in SceneManager.GetActiveScene().GetRootGameObjects()) { if (obj.name != targetName) {