Exemplo n.º 1
0
 private void HandleStartMovingToHotspot(Hotspot hotspot)
 {
     if (_hotspotManager.CanMove)
     {
         CloseMenu();
         _currentHotspotTMPText.text = hotspot.Label;
     }
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public EndMovingToHotspotEvent(Hotspot Hotspot)
 {
     this.Hotspot = Hotspot;
 }
Exemplo n.º 4
0
 public StartMovingToHotspotEvent(Hotspot Hotspot)
 {
     this.Hotspot = Hotspot;
 }
Exemplo n.º 5
0
 public HotspotInitializeEvent(Hotspot Hotspot)
 {
     this.Hotspot = Hotspot;
 }