Ejemplo n.º 1
0
    // Detect if is a camera move or a analog drag.
    private bool NonAnalogScreenMove()
    {
#if UNITY_EDITOR
        return(true);
#else
        List <string> analogIds = VirtualInput.GetActiveAnalogs();

        for (int i = 0; i < Input.touchCount; ++i)
        {
            if (!analogIds.Contains(Input.GetTouch(i).fingerId.ToString()) &&
                Input.GetTouch(i).phase == TouchPhase.Moved)
            {
                return(true);
            }
        }
        return(false);
#endif
    }