public void Reset() { List <AgentConfig> configs = new List <AgentConfig>(ActiveAgents); foreach (var config in configs) { DestroyAgent(config.AgentGO); } ActiveAgents.Clear(); }
public void Reset() { List <GameObject> agents = new List <GameObject>(ActiveAgents); foreach (var agent in agents) { DestroyAgent(agent); } ActiveAgents.Clear(); }