本文整理汇总了C#中MovieTexture.Pause方法的典型用法代码示例。如果您正苦于以下问题:C# MovieTexture.Pause方法的具体用法?C# MovieTexture.Pause怎么用?C# MovieTexture.Pause使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MovieTexture
的用法示例。
在下文中一共展示了MovieTexture.Pause方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PlayVideo
public IEnumerator PlayVideo()
{
GameObject.Find ("First Person Controller").GetComponent<Level10Health> ().guiEnabled = false;
cam.depth = 2;
GameObject.Find("Initialization").GetComponent<AudioSource>().audio.Stop();
GameObject.Find("Initialization").GetComponent<CursorTime>().showCursor = false;
GameObject.Find("Initialization").GetComponent<AudioSource>().volume = 1;
Screen.lockCursor = true;
//Screen.showCursor = false;
//GameObject.Find("Main Camera").GetComponent<MouseLook>().enabled = false;
//GameObject.Find("First Person Controller").GetComponent<MouseLook>().enabled = false;
movie = renderer.material.mainTexture as MovieTexture;
audio.clip = movie.audioClip;
audio.Play();
movie.Play();
yield return new WaitForSeconds(audio.clip.length);
movie.Stop();
cam.depth = -2;
audio.volume = 0;
movie.Play();
audio.Play();
yield return new WaitForSeconds(0.2F);
movie.Pause();
audio.Pause();
Screen.lockCursor = false;
GameObject.Find("Initialization").GetComponent<AudioSource>().audio.clip = scary;
audio.volume = 1;
GameObject.Find("Initialization").GetComponent<AudioSource>().audio.Play ();
GameObject.Find("Initialization").GetComponent<CursorTime>().showCursor = true;
GameObject.Find ("First Person Controller").GetComponent<Level10Health> ().guiEnabled = true;
//Application.LoadLevel(Application.loadedLevel);
}
示例2: PauseMovie
/// <summary>
/// Pause custom MovieTexture.
/// </summary>
/// <param name='mt'>
/// MovieTexture.
/// </param>
public static void PauseMovie(MovieTexture mt)
{
mt.Pause();
}