Beispiel #1
0
 public void UpdateObjectList()
 {
     foreach (var objectModel in ObjectManager.instance.objectModels)
     {
         _dropDownWithSearth.options.Add(LevelDataManager.PropertyNameToString(objectModel.Value.objectTag));
     }
 }
Beispiel #2
0
        void UpdateUI(BindKey bindKey)
        {
            if (bindKey.beatObjectData != null)
            {
                string str = bindKey.beatObjectData.objectTag.ToString();
                _objectTagText.text = LevelDataManager.PropertyNameToString(bindKey.beatObjectData.objectTag);
            }

            if (bindKey.key != KeyCode.None)
            {
                _text.text = bindKey.key.ToString();
            }
        }
Beispiel #3
0
        void ConstructProperties()
        {
            _itemTag.text = LevelDataManager.PropertyNameToString(_selectedObject.objectTag);

            foreach (var propertiesObject in _propertiesObjects)
            {
                Destroy(propertiesObject.gameObject);
            }
            _propertiesObjects.Clear();

            foreach (var modelInput in _selectedObject.modelInputsData)
            {
                GameObject instanceProperty = GetInstanceProperty(modelInput);

                GameObject propertyObject = Instantiate(instanceProperty, instanceProperty.transform.parent);
                propertyObject.SetActive(true);

                ObjectProperty objectProperty = propertyObject.GetComponent <ObjectProperty>();
                objectProperty.Init(modelInput, this);
                _propertiesObjects.Add(objectProperty);
            }
        }