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;