Example #1
0
    public void PlayVideo(string fileName, Action action)
    {
        video.SetActive(true);
        VideoPlay play = video.GetComponent <VideoPlay> ();

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

        videoPlay.SetCallback(callback);
        videoPlay.Play(name);
    }