예제 #1
0
 /// <summary>
 /// Kill the individual
 /// </summary>
 /// <param name="fullFitness">indicates if the drone died for natural death or not</param>
 public void die(bool fullFitness)
 {
     if (GeneticSettings.hasToBeSaved(id) && fullFitness)
     {
         ((GAmanager)father).addDataToDs(new float[] { getAge(), fitness() });
     }
     Destroy(spawnedWaypoint);
     Destroy(this.gameObject);
 }