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(); } }
public void OpenInfoPanel() { hotSpotOpen = true; currentHotspot.HotSpotControl(); }