using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Video; public class stop : MonoBehaviour { public GameObject screen1, play1, pause1, stop1; private void OnMouseDown() { //停止影片播放 screen1.GetComponent().Stop(); //隱藏stop物件 stop1.SetActive(false); //隱藏pasue物件 pause1.SetActive(false); //顯示play物件 play1.SetActive(true); //設定screen1的透明度 = 0 screen1.GetComponent().material.color = new Color32(255, 255, 255, 0); } }