// 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; } } }
private void StartAgent(ANNAgent agent) { agent.StartAgent(); agent.Start(); }