Skip to content

Commit

Permalink
Fix find instances
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Nov 17, 2024
1 parent 977fb86 commit 537aea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Agents/OneTimeAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class OneTimeAgent : AbstractAgent
public static void ResetExecutedFlag()
{
// Reset runtime instances
var oneTimeAgents = FindObjectsOfType<OneTimeAgent>();
var oneTimeAgents = Resources.FindObjectsOfTypeAll<OneTimeAgent>();
foreach (var current in oneTimeAgents)
{
current.WasExecuted = false;
Expand Down

0 comments on commit 537aea3

Please sign in to comment.