/// <summary> /// Initiate the simulation and instanciate the sub-handler of it. /// </summary> private SimHandler() { // The declaration of the singleton is done here because Unity forbides us to use the new keyword on MonoBehaviour objects. instance = this; control = new Control(); statistics = new SimulationStatistics(10); population = new PopulationHandler(this); // Temporaire ! //Parameters = new DefaultParameters(); Step = 0; }
public PopulationHandler(SimHandler handler) { this.handler = handler; Organisms = new List<Organism>(); LivingOrganisms = 0; }