コード例 #1
0
    // Use this for initialization
    void Start()
    {
        SPO2Reader reader = new SPO2Reader(portName, maxQueueSize);

        processor = new SPO2Processor(reader);
        processor.Start();
    }
コード例 #2
0
    public void Reconnect(string portName)
    {
        this.portName = portName;
        processor.StopAndJoin();
        SPO2Reader reader = new SPO2Reader(portName, maxQueueSize);

        processor = new SPO2Processor(reader);
        processor.Start();
    }
コード例 #3
0
 void OnDestroy()
 {
     Time.timeScale = 1;
     if (processor != null)
     {
         processor.StopAndJoin();
         processor = null;
     }
 }
コード例 #4
0
 void OnApplicationQuit()
 {
     Time.timeScale = 1;
     if (processor != null)
     {
         processor.StopAndJoin();
         processor = null;
     }
 }