using System.Collections; using System.Collections.Generic; using Unity.VisualScripting; using UnityEngine; using UnityEngine.Video; public class PlayVideo : MonoBehaviour { public GameObject vv; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } private void OnTriggerEnter(Collider other) { vv.GetComponent().Play(); // GameObject.Find("Cube").SetActive(false); } private void OnTriggerExit(Collider other) { vv.GetComponent().Stop(); } }