Esempio n. 1
0
 public void OnGDNButtonClick()
 {
     hlManager.StopHighlighting();
     Debug.Log("gare du nord clicked");
     gareManager.LoadedGare = "GDN";
     if (!isScene_CurrentlyLoaded("SNCB"))
     {
         UnloadStib();
         UnloadTrafic();
         UnloadVillo();
         SceneManager.LoadScene("SNCB", LoadSceneMode.Additive);
     }
     else
     {
         railManager = GameObject.Find("CameraFilmingGare").GetComponent <iRailDisplay>();
         railManager.LoadGare();
     }
     meteoCamera.SetActive(false);
     if (unloadCoroutine != null)
     {
         StopCoroutine(unloadCoroutine);
     }
     unloadCoroutine = UnloadAfter30s();
     StartCoroutine(unloadCoroutine);
 }
Esempio n. 2
0
 public void Show_GC()
 {
     Debug.Log("gare centrale clicked");
     gareManager.LoadedGare = "GC";
     if (!isScene_CurrentlyLoaded("SNCB"))
     {
         UnloadTrafic();
         UnloadStib();
         UnloadVillo();
         SceneManager.LoadScene("SNCB", LoadSceneMode.Additive);
     }
     else
     {
         railManager = GameObject.Find("CameraFilmingGare").GetComponent <iRailDisplay>();
         railManager.LoadGare();
     }
     meteoCamera.SetActive(false);
     if (unloadCoroutine != null)
     {
         StopCoroutine(unloadCoroutine);
     }
     unloadCoroutine = UnloadAfter30s();
     StartCoroutine(unloadCoroutine);
     hlManager.HighlightAtPosition("gc");
 }