Exemplo n.º 1
0
        public void InsertInterval(uint characterNum, eGestureKind eKind)
        {
            ListInterval list          = null;
            float        lastInputTime = 0;

            if (true == _dictInterval.TryGetValue(characterNum, out list))
            {
                lastInputTime = list.lastInputTime;
            }

            GestureInterval gi = new GestureInterval();

            gi.kind     = eKind;
            gi.interval = Time.time - lastInputTime;

            if (null != list)
            {
                list.lastInputTime = Time.time;
            }
            DebugWide.LogBlue(gi.interval + "  : interval");                      //chamto test

            this.InsertInterval(characterNum, gi);
        }
Exemplo n.º 2
0
 public GestureInterval(eGestureKind k, float inter)
 {
     kind     = k;
     interval = inter;
 }