コード例 #1
0
    public void SetClip(string clipName)
    {
        SoundMeta meta = soundInfo.values[clipName];

        audioSource.clip   = meta.Clip;
        audioSource.time   = meta.Start;
        audioSource.volume = meta.Volume;
        audioSource.pitch  = meta.Pitch;
    }
コード例 #2
0
 public SoundMetaQueryResult(long totalResults, SoundMeta[] soundMeta)
 {
     TotalResults = totalResults;
     SoundMeta = soundMeta;
 }
コード例 #3
0
 internal static CfSoundMeta FromSoundMeta(SoundMeta source)
 {
     return(source == null ? null : new CfSoundMeta(EnumeratedMapper.EnumFromSoapEnumerated <CfSoundStatus>(source.Status.ToString()),
                                                    source.Name, source.Created, source.LengthInSeconds, source.id));
 }