TouchScript.TouchManagerInstance.INTERNAL_CancelTouch C# (CSharp) Method

INTERNAL_CancelTouch() private method

private INTERNAL_CancelTouch ( int id ) : void
id int
return void
        internal void INTERNAL_CancelTouch(int id)
        {
            lock (touchLock)
            {
                TouchPoint touch;
                if (!idToTouch.TryGetValue(id, out touch))
                {
                    // This touch was added this frame
                    touch = touchesBegan.Find((t) => t.Id == id);
                    // No touch with such id
                    if (touch == null)
                    {
            #if TOUCHSCRIPT_DEBUG
                        Debug.LogWarning("TouchScript > Touch with id [" + id +
                                         "] is requested to CANCEL but no touch with such id found.");
            #endif
                        return;
                    }
                }
                if (!touchesCancelled.Contains(id)) touchesCancelled.Add(touch.Id);
            #if TOUCHSCRIPT_DEBUG
                else
                    Debug.LogWarning("TouchScript > Touch with id [" + id +
                                     "] is requested to CANCEL more than once this frame.");
            #endif
            }
        }