// Update is called once per frame void Update() { if (InputManager.keyPressed[KeyCode.C]) { LevelMap.ClearMapObjects(ref mapEditor.map); } }
void MapChoiceDropdownListener() { mapChoiceDropdown.onValueChanged.AddListener( delegate { string dropdownText = mapChoiceDropdown.captionText.text.ToString(); mapNameInput.text = dropdownText; LevelMap.ClearMapObjects(ref mapEditor.map); mapEditor.map = MapParser.GetLevelMapFromJSON(dropdownText); }); }