using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Video; public class pause : MonoBehaviour { public GameObject screen1, play1, pause1, stop1; private void OnMouseDown() { //隱藏pause 物件 pause1.SetActive(false); //顯示play物件 play1.SetActive(true); //暫停影片播放 screen1.GetComponent().Pause(); } }