public void OnSelectButtonDown() { if (selectedPlanet == null) { return; } if (!isEmigrationEnd) { return; } if (player.mainPlanet == selectedPlanet) { return; } audioSource.clip = exploreSound; audioSource.Play(); if (selectedPlanet.isExplored) { rocket.Emigration(selectedPlanet); audioSource.clip = emigrationSound; audioSource.Play(); selectedPlanet = null; selectButtonText.text = ""; for (int i = 0; i < 3; i++) { descriptionTexts[i].text = ""; } } else { if (exploringPlanets.Contains(selectedPlanet)) { return; } StartCoroutine(ExploringProcess(selectedPlanet)); exploringPlanets.Enqueue(selectedPlanet); OnPlanetTouch(selectedPlanet); } }