コード例 #1
0
 /// <summary>
 /// updates UI to show analysis
 /// </summary>
 public void StopSimulation()
 {
     boidInformationWindow = null;
     HideMenu(simulationMenu);
     ShowMenu(analysisMenu);
     GameObject.Find(Bootstrapper).GetComponent<BootStrapper>().StopSimulation();
 }
コード例 #2
0
 /// <summary>
 /// updates UI to show the simulation
 /// </summary>
 public void StartSimulation()
 {
     HideMenu(mainMenu);
     HideMenu(setupMenu);
     HideMenu(environmentBuilderMenu);
     HideMenu(demographicMenu);
     MenuControlController menuControlController = setupMenu.GetComponent<MenuControlController>();
     int numberOfBoids = menuControlController.NumberOfBoidsValue;
     float genderBias = menuControlController.GenderBiasValue;
     GameObject.Find(Bootstrapper).GetComponent<BootStrapper>().StartSimulation(numberOfBoids, genderBias);
     ShowMenu(simulationMenu);
     boidInformationWindow = new BoidInformationWindow();
 }