public static Layer GenTestLayer(IAudioClipHandle handle) { var layer = new Layer(); layer.clipHandle = handle; return layer; }
public static Layer GenTestLayer(IAudioClipHandle handle) { var layer = new Layer(); layer.clipHandle = handle; return(layer); }
/// <summary> /// 해당 레이어에 오디오 클립 세팅 /// </summary> /// <param name="layerIndex"></param> /// <param name="handle"></param> public void SetAudioClip(int layerIndex, IAudioClipHandle handle) { ClearAudioClip(layerIndex); var source = m_audioSources[layerIndex]; source.clip = handle.Acquire() as AudioClip; m_audioClipHandles[layerIndex] = handle; }
/// <summary> /// 해당 레이어에 오디오 클립 세팅 /// </summary> /// <param name="layerIndex"></param> /// <param name="handle"></param> public void SetAudioClip(int layerIndex, IAudioClipHandle handle) { ClearAudioClip(layerIndex); var source = m_audioSources[layerIndex]; source.clip = handle.Acquire() as AudioClip; m_audioClipHandles[layerIndex] = handle; }