Esempio n. 1
0
        public void Activate(ArBehaviour behaviour)
        {
            _behaviour = behaviour;

            LatInputField.text    = PlayerPrefs.GetString("ArpoiseSettingsLatitude");
            LonInputField.text    = PlayerPrefs.GetString("ArpoiseSettingsLongitude");
            ActivationToggle.isOn = true.ToString().Equals(PlayerPrefs.GetString("ArpoiseSettingsActivated"));
        }
Esempio n. 2
0
 public void Setup(ArItem currentItem, ArBehaviour behaviour)
 {
     _item            = currentItem;
     nameLabel.text   = _item.itemName;
     line2Label.text  = _item.line2;
     line3Label.text  = _item.distance + "m" + (string.IsNullOrEmpty(_item.line3) ? string.Empty : ", " + _item.line3);
     iconImage.sprite = _item.icon;
     _behaviour       = behaviour;
 }
Esempio n. 3
0
        public void AddButtons(List <ArItem> itemList, ArBehaviour behaviour)
        {
            if (itemList != null)
            {
                foreach (var item in itemList)
                {
                    var newButton = _buttonObjectPool.GetObject();
                    newButton.transform.SetParent(_contentPanel);

                    var button = newButton.GetComponent <LayerButton>();
                    button.Setup(item, behaviour);
                }
            }
        }
Esempio n. 4
0
        public void HandleClick()
        {
            ArBehaviour behaviour = Anchor.GetComponent <ArBehaviour>();

            behaviour.HandleMenuButtonClick();
        }
Esempio n. 5
0
        public void HandleClick()
        {
            ArBehaviour behaviour = Anchor.GetComponent <ArBehaviour>();

            behaviour.HandlePanelHeaderButtonClick();
        }