public void LoadScene(string Scene) { letsGo = Scene; camInPlace = false; admob.InterstialShow(); switch (Scene) { case "Rating": cameraMove.enabled = false; Rating.SetActive(true); Space.SetActive(false); CanvasRating.SetActive(true); CanvasSpace.SetActive(false); transformCam = rCam.transform.position; addUser.Load(); displayPlayers.LoadPlayers(); break; case "Space": cameraMove.enabled = false; //Генерирует строку для сохранения планеты if (Planet.activeSelf) { SL.CollectionData("Planet0", PlanetInfo.GenerateStrPlanets()); } objTable.SetActive(false); Rating.SetActive(false); Space.SetActive(true); Planet.SetActive(false); CanvasPlanet.SetActive(false); CanvasRating.SetActive(false); CanvasSpace.SetActive(true); transformCam = sCam.transform.position; SL.LoadInfo(); break; case "Planet0": cameraMove.enabled = true; Planet.SetActive(true); Space.SetActive(false); CanvasPlanet.SetActive(true); CanvasSpace.SetActive(false); transformCam = pCam.transform.position; PlanetInfo.LoadInfo(); break; } }