private static void GenerateAgents(AIContext Context, int Count) { var Planner = new GoapPlanner(); for (int i = 0; i < Count; i++) { var WorldState = new GoapState <string, object> () { }; var Rand = new Random(i); var GoalState = new GoapState <string, object> () { ["HasAction" + Rand.Next(1, 5).ToString()] = true }; var Agent = Context.AddAgent(WorldState, GoalState, Planner); Agent.isGoapPlanRequest = true; } }