Exemplo n.º 1
0
 private void OnGUI()
 {
     if (GUI.Button(new Rect(0, 0, 200, 100), "Interact with BirdHouse"))
     {
         Birdhouse.Interact(null);
     }
     if (GUI.Button(new Rect(0, Screen.height - 100, 200, 100), "Instantiate Bird\nfrom PrefabCatalogue"))
     {
         Instantiate(PrefabCatalogue.Instance["Bird"]);
     }
     if (GUI.Button(new Rect(200, 0, 200, 100), "Move Player in/out of\nBirdSpawn range"))
     {
         TestSpawnPoint();
     }
     if (GUI.Button(new Rect(Screen.width - 200, Screen.height - 100, 200, 100), "Toggle Laser"))
     {
         if (!TeleportLaser.gameObject.activeSelf)
         {
             TeleportLaser.gameObject.SetActive(true);
         }
         TeleportLaser.ToggleLaser();
     }
     if (GUI.Button(new Rect(200, Screen.height - 100, 200, 100), "Interact with page\nwith random bird"))
     {
         StartCoroutine(InteractWithPage());
     }
     if (GUI.Button(new Rect(400, Screen.height - 100, 200, 100), "Print all identified birds"))
     {
         SoundDatabase.PrintAllIdentifiedBirds();
     }
 }