예제 #1
0
    public void Reset()
    {
        List <AgentConfig> configs = new List <AgentConfig>(ActiveAgents);

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

        ActiveAgents.Clear();
    }
예제 #2
0
    public void Reset()
    {
        List <GameObject> agents = new List <GameObject>(ActiveAgents);

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

        ActiveAgents.Clear();
    }