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