コード例 #1
0
 public void Resume()
 {
     if (m_Texture != null)
     {
         m_Texture.Play();
     }
 }
コード例 #2
0
    public void Init()
    {
        m_Texture= TargetNode.AddComponent<GstNetworkTexture> ();
        m_Texture.Initialize ();

        m_Texture.ConnectToHost (Host, port);
        m_Texture.Play ();
    }
コード例 #3
0
    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();
    }
コード例 #4
0
    // 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 ();
    }
コード例 #5
0
    // 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();
    }