Home > other >  Videoplayer error there must declare the main body, because it is not marked as abstract, extern or
Videoplayer error there must declare the main body, because it is not marked as abstract, extern or

Time:09-26

Using System. The Collections;
Using System. Collections. Generic;
Using UnityEngine;
Using UnityEngine. Video;

Public class Test: MonoBehaviour {

Private VideoPlayer VideoPlayer ();

Private void Awake ()
{
VideoPlayer ()=GetComponent (a);
}

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 mean

CodePudding user response:

Private VideoPlayer VideoPlayer ();
  • Related