public void PlayVideo(string fileName, Action action) { video.SetActive(true); VideoPlay play = video.GetComponent <VideoPlay> (); play.SetCallback(action); play.Play(fileName); }
public void PlayVideo(string name, Action callback) { GetViewChild("VideoPlay").SetActive(true); VideoPlay videoPlay = GetViewChild("VideoPlay").GetComponent <VideoPlay> (); videoPlay.SetCallback(callback); videoPlay.Play(name); }