public void Resume() { if (m_Texture != null) { m_Texture.Play(); } }
public void Init() { m_Texture= TargetNode.AddComponent<GstNetworkTexture> (); m_Texture.Initialize (); m_Texture.ConnectToHost (Host, port); m_Texture.Play (); }
public void Init(RobotInfo ifo) { m_Texture = TargetNode.AddComponent <GstNetworkTexture> (); m_Texture.Initialize(); string ip = Settings.Instance.GetValue("Ports", "ReceiveHost", ifo.IP); m_Texture.ConnectToHost(ip, port); m_Texture.Play(); }
// Use this for initialization void Start() { m_Texture = gameObject.GetComponent<GstNetworkTexture>(); // Check to make sure we have an instance. if (m_Texture == null) { DestroyImmediate(this); } m_Texture.Initialize (); m_Texture.ConnectToHost (Host, port); m_Texture.Play (); }
// Use this for initialization void Start() { m_Texture = gameObject.GetComponent <GstNetworkTexture>(); // Check to make sure we have an instance. if (m_Texture == null) { DestroyImmediate(this); } m_Texture.Initialize(); m_Texture.ConnectToHost(Host, port); m_Texture.Play(); }