public void UpdateObjectList() { foreach (var objectModel in ObjectManager.instance.objectModels) { _dropDownWithSearth.options.Add(LevelDataManager.PropertyNameToString(objectModel.Value.objectTag)); } }
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(); } }
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); } }