コード例 #1
0
 public void SetSelectedSoundToNextIcon()
 {
     if (selMarker == null)
     {
         return;
     }
     selMarker.SetToNextIcon();
 }
コード例 #2
0
        public void SoundIconButtonClicked()
        {
            // Just cycle through soundIcons for now
            if (canvasDelegate == null)
            {
                return;
            }
            SoundMarker selectedSound = canvasDelegate.objectSelection.selectedMarker;

            if (selectedSound == null)
            {
                return;
            }

            // Change the 3D representation
            selectedSound.SetToNextIcon();
            // Change the 2D UI representation
            soundIconImage.sprite = selectedSound.iconSprite;
        }