MoviePlayNode.cs
494 Bytes
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class MoviePlayNode : MonoBehaviour
{
[SerializeField]
private Text _textNode;
private string _filename;
private NetworkUser _netNode;
public void Initialize(string title, string filename, NetworkUser parent)
{
_textNode.text = title;
_filename = filename;
_netNode = parent;
}
public void PlayMovie()
{
_netNode.CmdLoadVideo(_filename);
}
}