예제 #1
0
 public FileSearchResult(TestAudioSource audioSource, AudioSearchResultType type, string resourceName)
     : base(audioSource, type)
 {
     this.m_ResourceName = resourceName;
     this.m_Type         = type;
     this.FileType       = type == AudioSearchResultType.MusicFile ? SoundFileType.Music : SoundFileType.SoundEffect;
 }
예제 #2
0
        public ModeElementSearchResult(TestAudioSource audioSource, FileSearchResult soundResource, FileSearchResult musicResource)
            : base(audioSource, AudioSearchResultType.ModeElement)
        {
            this.m_SoundResource = soundResource;
            this.m_MusicResource = musicResource;

            this.FilesToBeDownloaded.Add(m_MusicResource);
            this.FilesToBeDownloaded.Add(m_SoundResource);
        }