public void SoundShapeButtonClicked() { if (canvasDelegate == null) { return; } SoundMarker selectedSound = canvasDelegate.objectSelection.selectedMarker; if (selectedSound == null) { return; } selectedSound.SetToNextSoundShape(); soundShapeImage.sprite = selectedSound.soundShapeSprite; canvasDelegate?.objectSelection.setShape(selectedSound.soundShape); }