Пример #1
0
    protected override void UpdateState()
    {
        timeOut += Time.deltaTime * 1000.0f;
        if (timeOut > TimeOutInterval)
        {
            SendValue();
            timeOut = 0;
        }

        if (Input.GetKeyDown(KeyCode.C))
        {
            _calibrating = true;
            for (int i = 0; i < 4; ++i)
            {
                _samples[i].Clear();
            }
        }

        _serial.Update();
    }
Пример #2
0
 protected override void UpdateState()
 {
     SendValue();
     _serial.Update();
 }