Esempio n. 1
0
 void switchRadar(bool tutorial = false)
 {
     RadarObjects[currentRadar].SetActive(false);
     if (!tutorial)
     {
         currentRadar = radars[radarCounter];
         scenarios    = randomizeScenarioOrder(original_scenarios);
     }
     else
     {
         currentRadar = tutorialRadarOrder[tutorialCounter];
     }
     RadarObjects[currentRadar].SetActive(true);
     objectSpawner.setLabelCamera(RadarObjects[currentRadar].transform.GetComponentInChildren <Camera>());
     if (currentRadar == 3)
     {
         objectSpawner.setIs2d(true);
     }
     else
     {
         objectSpawner.setIs2d(false);
     }
 }