private void HandleStartMovingToHotspot(Hotspot hotspot) { if (_hotspotManager.CanMove) { CloseMenu(); _currentHotspotTMPText.text = hotspot.Label; } }
private void AddButton(Hotspot hotspot) { GameObject parent = _leftHotspotButtonsContainer; if (hotspot.Number > _hotspotManager.HotspotList.Length / 2) { parent = _rightHotspotButtonsContainer; } GameObject buttonGo = Instantiate(_hotspotButtonPrefab, parent.transform); HotspotButton hotspotButton = buttonGo.GetComponent <HotspotButton>(); hotspotButton.SetHotspot(hotspot); _hotspotButtonList.Add(hotspotButton); }
public EndMovingToHotspotEvent(Hotspot Hotspot) { this.Hotspot = Hotspot; }
public StartMovingToHotspotEvent(Hotspot Hotspot) { this.Hotspot = Hotspot; }
public HotspotInitializeEvent(Hotspot Hotspot) { this.Hotspot = Hotspot; }