private int getTouchCount(bool realTouch) { int count = 0; if (realTouch || MInput.Instance.enableRemote) { count = Input.touchCount; } else { if (Input.GetMouseButton(0) || Input.GetMouseButtonUp(0)) { count = 1; if (MInput.GetSecondeFingerSimulation()) { if (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(MInput.Instance.twistKey) || Input.GetKey(KeyCode.LeftControl) || Input.GetKey(MInput.Instance.swipeKey)) { count = 2; } if (Input.GetKeyUp(KeyCode.LeftAlt) || Input.GetKeyUp(MInput.Instance.twistKey) || Input.GetKeyUp(KeyCode.LeftControl) || Input.GetKeyUp(MInput.Instance.swipeKey)) { count = 2; } } if (count == 0) { complexCenter = Vector2.zero; oldMousePosition[0] = new Vector2(-1, -1); oldMousePosition[1] = new Vector2(-1, -1); } } } return(count); }