using UnityEngine;
using System.Collections;
public class moive : MonoBehaviour {
public MovieTexture movTexture;
public GameObject moive_texture;
public GameObject quan_bt;
public GameObject quit_bt;
public GameObject play_bt;
// Use this for initialization
void Start () {
quan_bt.SetActive(true);
quit_bt.SetActive(false);
}
// Update is called once per frame
void Update () {
}
void play()
{
movTexture.Play();
}
void quanping()
{
play_bt.SetActive(false);
quan_bt.SetActive(false);
quit_bt.SetActive(true);
moive_texture.transform.localScale = new Vector3 (1024.0f,768.0f,1.0f);//根据分辨率设置全屏大小
}
void quit()
{
play_bt.SetActive(true);
quan_bt.SetActive(true);
quit_bt.SetActive(false);
moive_texture.transform.localScale = new Vector3 (800.0f,600.0f,1.0f);//初始大小
}
}
NGUI播放视频、全屏等
时间: 2024-10-11 09:46:14