示例#1
0
    void OnDestroy()
    {
        DisConnect();

        m_Client         = null;
        m_RetimingClient = null;
    }
示例#2
0
    void Start()
    {
        m_Client         = new Client();
        m_RetimingClient = new RetimingClient();

        // If we're using the retimer, we don't want to use our own thread for getting frames.
        GetFrameThread = !IsRetimed;

        if (ConfigureWireless)
        {
            Output_ConfigureWireless WifiConfig = m_Client.ConfigureWireless();
            if (WifiConfig.Result != Result.Success)
            {
                print("Failed to configure wireless: " + WifiConfig.ToString());
            }
            else
            {
                print("Configured adapter for wireless settings");
            }
        }

        print("Starting...");
        Output_GetVersion OGV = m_Client.GetVersion();

        print("Using Datastream version " + OGV.Major + "." + OGV.Minor + "." + OGV.Point + "." + OGV.Revision);

        if (Log)
        {
            SetupLog();
        }

        m_Thread = new Thread(ConnectClient);
        m_Thread.Start();
    }
示例#3
0
    void Start()
    {
        //data_UI.text = "Try this test";

        m_Client         = new Client();
        m_RetimingClient = new RetimingClient();

        print("Starting...");
        Output_GetVersion OGV = m_Client.GetVersion();

        print("Using Datastream version " + OGV.Major + "." + OGV.Minor + "." + OGV.Point + "." + OGV.Revision);

        if (Log)
        {
            SetupLog();
        }

        m_Thread = new Thread(ConnectClient);
        m_Thread.Start();
    }