unity的片头制作脚本分享
来源:
|
责任编辑:她。 |
发布时间: 2013-07-03 09:05 | 浏览量:
unity的片头制作脚本分享:
function Start ()
{
renderer.material.mainTexture.Play ();
yield new WaitForSeconds(11);
Application.LoadLevel(1);
}
function Update () {
if (Input.GetButtonDown ("Jump")) {
if (renderer.material.mainTexture.isPlaying) {
Application.LoadLevel(1);
}
else {
renderer.material.mainTexture.Play();
}
}
}
声音给像机,,视频给材质。
- Tags:Unity
相关文章
网友评论
全部评论:0条
推荐
热门