Ejemplo n.º 1
0
    public void Reset()
    {
        List <AgentConfig> configs = new List <AgentConfig>(ActiveAgents);

        foreach (var config in configs)
        {
            DestroyAgent(config.AgentGO);
        }

        ActiveAgents.Clear();
    }
Ejemplo n.º 2
0
    public void Reset()
    {
        List <GameObject> agents = new List <GameObject>(ActiveAgents);

        foreach (var agent in agents)
        {
            DestroyAgent(agent);
        }

        ActiveAgents.Clear();
    }