Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (_newAgentsAvailable)
     {
         foreach (AgentObject agent in _agents)
         {
             TestAgent castedAgent = (TestAgent)agent;
             castedAgent.CalcualteFitness();
             castedAgent.KillAgent();
         }
     }
     else if (_startNewGen)
     {
         _startNewGen = false;
     }
 }