void Awake() { // This prevents multiple SimulationManagers to be active at the same time if (instance == null) { instance = this; randomGenerator = new RandomGenerator(126789); dataWriter = new CsvWriter(); dataWriter.CreateHeaders(); testIsRunning = false; testHasStarted = false; } else { Destroy(gameObject); } }