AudioListener.pause 暂停

static var pause : bool

Description描述

The paused state of the audio. If set to True, the listener will not generate sound.

音频的暂停状态。如果设置为true,侦听器将不产生声音。

Similar to setting the volume to 0.0.

类似于设置音量为0.0。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		AudioListener.pause = true;
	}
}
AudioListener.pause = true;
Page last updated: 2011-1-13