当前位置: 首页>>代码示例>>C#>>正文


C# MovieTexture.Pause方法代码示例

本文整理汇总了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);
	}
开发者ID:eledezma,项目名称:CodeEscape,代码行数:32,代码来源:Level10Video.cs

示例2: PauseMovie

	/// <summary>
	/// Pause custom MovieTexture.
	/// </summary>
	/// <param name='mt'>
	/// MovieTexture.
	/// </param>
	public static void PauseMovie(MovieTexture mt)
	{
		mt.Pause();
	}
开发者ID:Higure27,项目名称:Grimoire,代码行数:10,代码来源:PlayMovieTexture.cs


注:本文中的MovieTexture.Pause方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。