private void OnTwoHandManipulationStarted(State newState) { if ((newState & State.Rotating) > 0) { m_rotateLogic.Setup(m_handsPressedLocationsMap, HostTransform); } if ((newState & State.Moving) > 0) { m_moveLogic.Setup(GetHandsCentroid(), HostTransform); } if ((newState & State.Scaling) > 0) { m_scaleLogic.Setup(m_handsPressedLocationsMap, HostTransform); } }
private void OnTwoHandManipulationStarted(ManipulationMode newState) { #if UNITY_2017_2_OR_NEWER if ((newState & ManipulationMode.Rotate) > 0) { rotateLogic.Setup(handsPressedLocationsMap, hostTransform); } if ((newState & ManipulationMode.Move) > 0) { moveLogic.Setup(GetHandsCentroid(), hostTransform); } if ((newState & ManipulationMode.Scale) > 0) { scaleLogic.Setup(handsPressedLocationsMap, hostTransform); } #endif // UNITY_2017_2_OR_NEWER }