void ReloadWorld() { selectedWorld = GameObject.Find(world); returnWorldPos = selectedWorld.transform.position; selectedWorld.transform.position = savedWorldPlaced; rmc = selectedWorld.GetComponent <RoomWorldController>(); rmc.SetReturn(returnWorldPos, delayForGalaxy); rmc.transitioning = true; }
public void OnSelect(Transform t) { if (t.gameObject.tag == "EarthWorld") { Debug.Log("Selected the earth world"); RoomWorldController earthWorldController = t.gameObject.GetComponent <RoomWorldController>(); earthWorldController.isSelected = true; //earthWorldController.transitioning = true; //StartCoroutine(earthWorldController.EnteringTheWorld()); playSelectedWorldAudio(); } }