function Pause () : void
Description描述
Pauses playing the clip.
暂停播放该剪辑。
using UnityEngine; using System.Collections; public class example : MonoBehaviour { void Awake() { audio.Pause(); } }
audio.Pause();
参见:Play, Stop 函数。
本脚本参考基于Unity 3.4.1f5