Пример #1
0
 public void ToggleInfoPanel()
 {
     // If using the open button, (from static view) assign the hotspot
     if (currentHotspot == null)
     {
         currentHotspot = hotSpots.transform.Find(Camera.main.name.ToString()).GetComponent <HotSpot>();
         hotSpotOpen    = true;
         currentHotspot.HotSpotControl();
     }
     // If the hotspot is already open
     else
     {
         InfoPanelClose();
     }
 }
Пример #2
0
 public void OpenInfoPanel()
 {
     hotSpotOpen = true;
     currentHotspot.HotSpotControl();
 }