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); }
public GestureInterval(eGestureKind k, float inter) { kind = k; interval = inter; }