From 537aea3019c7da049827a39de3743b2ca2f06899 Mon Sep 17 00:00:00 2001 From: Koji Hasegawa Date: Sun, 17 Nov 2024 15:51:59 +0900 Subject: [PATCH] Fix find instances --- Runtime/Agents/OneTimeAgent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Agents/OneTimeAgent.cs b/Runtime/Agents/OneTimeAgent.cs index d0d35f5..edf28f3 100644 --- a/Runtime/Agents/OneTimeAgent.cs +++ b/Runtime/Agents/OneTimeAgent.cs @@ -26,7 +26,7 @@ public class OneTimeAgent : AbstractAgent public static void ResetExecutedFlag() { // Reset runtime instances - var oneTimeAgents = FindObjectsOfType(); + var oneTimeAgents = Resources.FindObjectsOfTypeAll(); foreach (var current in oneTimeAgents) { current.WasExecuted = false;