private IEnumerator ResetTest() { UnityEngine.Debug.Log("reseting test..."); waitForSeconds = new WaitForSeconds(people.GetPeople().Count * 0.0075f); simulationStarted = false; simulationPaused = true; simulationFinished = false; yield return(waitForSeconds); SimulationBack(); yield return(waitForSeconds); PathsBack(); yield return(waitForSeconds); PeopleBack(); yield return(waitForSeconds); if (test < maxTests || (test == maxTests && actReps > 0)) { //if (test % 10 == 0) //{ // sceneInfoForTest = new SceneInfoForTest(sceneInfoBitForTestList); // DataController.SetInfoDataForTest(sceneInfoForTest); // DataController.SaveInfoForTest(); //} BeginTest(); } else { UnityEngine.Debug.Log("Fin del test"); sceneInfoForTest = new SceneInfoForTest(sceneInfoBitForTestList); UnityEngine.Debug.Log("sceneInfoForTest obtained"); DataController.SetInfoDataForTest(sceneInfoForTest); DataController.SaveInfoForTest(); } }
public static void SetInfoDataForTest(SceneInfoForTest idt_) { infoForTest = idt_; }