Using System. Collections. Generic;
Using UnityEngine;
Using UnityEngine. Video;
Public class Test: MonoBehaviour {
Private VideoPlayer VideoPlayer ();
Private void Awake ()
{
VideoPlayer ()=GetComponent
}
Void the Start () {
}
Void the Update () {
If (Input. GetKeyDown (KeyCode. P))
{
MyPlayPause ();
}
}
Public void myPlayPause ()
{
If (videoPlayer. IsPlying)
{
VideoPlayer0. Pause ();
}
The else
{
VideoPlayer0. Play ();
}
}
}
CodePudding user response:
Tell me what is the brackets meanCodePudding user response:
Private VideoPlayer VideoPlayer ();