Example #1
0
    // Update is called once per frame
    void Update()
    {
        if (Application.isPlaying)
        {
            switch (base_net.TrainingType)
            {
            case ANNNetwork.ANNNetworkTrainingType.MultiAgent:              // MULTI
                if (HaveAllChildrenEnded() == true)
                {
                    base_agent.Start();
                    base_agent.OnGenerationEndMulti();
                    base_net.StepToNextGeneration();
                    ReplicateAgent(AgentPrefab);
                }
                break;

            case ANNNetwork.ANNNetworkTrainingType.SingleAgent:             // SINGLE

                break;
            }
        }
    }
Example #2
0
 private void StartAgent(ANNAgent agent)
 {
     agent.StartAgent();
     agent.Start();
 }