override public string SetLabel()
        {
            string labelAdd = musicAction.ToString();

            if (musicAction == MusicAction.Play &&
                AdvGame.GetReferences().settingsManager != null &&
                AdvGame.GetReferences().settingsManager.musicStorages != null)
            {
                int trackIndex = GetTrackIndex(AdvGame.GetReferences().settingsManager.musicStorages.ToArray(), null, false);
                if (trackIndex >= 0)
                {
                    labelAdd += " " + AdvGame.GetReferences().settingsManager.musicStorages[trackIndex].audioClip.name.ToString();
                }
            }

            return(labelAdd);
        }
Пример #2
0
        public override string SetLabel()
        {
            string labelAdd = musicAction.ToString();

            if (musicAction == MusicAction.Play &&
                AdvGame.GetReferences().settingsManager != null &&
                AdvGame.GetReferences().settingsManager.ambienceStorages != null)
            {
                int trackIndex = GetTrackIndex(AdvGame.GetReferences().settingsManager.ambienceStorages.ToArray(), null, false);
                if (trackIndex >= 0 && trackIndex < AdvGame.GetReferences().settingsManager.ambienceStorages.Count)
                {
                    AudioClip clip = AdvGame.GetReferences().settingsManager.ambienceStorages[trackIndex].audioClip;
                    if (clip != null)
                    {
                        labelAdd += " " + clip.name.ToString();
                    }
                }
            }

            return(labelAdd);
        }