// Update is called once per frame void Update() { if (firsttime) { //Visible changed to false _turnScripts.turnOnOffPanel(false); firsttime = false; } }
//Checking which planet is clicked private void CheckPlanet() { // Current planet name is send here from different class if (currentPlanetName == "Earth") { _manageScripts.turnOnOffPanel(false); _manageScripts.turnOnOffSolarSystem(false); _manageScripts.turnOnOffPlanetEarth(true); _manageScripts.turnOnOffPlanetaryBackground(false); _manageScripts.CameraMovement(false); Vector3 camPos = new Vector3(-11, 0, -10); Camera.main.transform.position = camPos; Camera.main.orthographicSize = 13; } // Current planet name is necessary to send to know which conditions have to be fulfilled else { _checker.CheckConditions(currentPlanetName); } }