Ejemplo n.º 1
0
    /// update the string in the TextAreas: using real time gesture data
    public void Update_realtime()
    {
        if (m_manager.GestureCount == 0)
        {
            return;
        }
        GestureDetector gestDet = m_manager[0];

        if (!gestDet.CheckPositionConfidence())
        {
            m_showStr = "position not confident";
            return;
        }

        if (Input.GetKeyUp(KeyCode.LeftArrow))
        {
            m_gestIdx = Mathf.Clamp(m_gestIdx - 1, 0, m_manager.GestureCount - 1);
        }
        if (Input.GetKeyUp(KeyCode.RightArrow))
        {
            m_gestIdx = Mathf.Clamp(m_gestIdx + 1, 0, m_manager.GestureCount - 1);
        }

        GenerateGestureDataString();
    }