Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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();
     }
 }