public void OnSourceLost(SourceStateEventData eventData) { //if the source lost is the current hand source if (currentInputEventData != null && eventData.SourceId == currentInputEventData.SourceId) { isScaling = false; mainCursor.OnInputUp(currentInputEventData); currentInputEventData = null; // Remove self as a modal input handler InputManager.Instance.PopModalInputHandler(); } }
public void OnSourceLost(SourceStateEventData eventData) { if (currentInputSource != null && eventData.SourceId == currentInputSourceId) { Debug.Log("sourceLost"); isRotating = false; // Remove self as a modal input handler InputManager.Instance.PopModalInputHandler(); mainCursor.OnInputUp(inputEventData); inputEventData = null; currentInputSource = null; } }
public void OnSourceLost(SourceStateEventData eventData) { //Debug.Log("Source Lost"); //if the source lost is the current hand source if (currentInputSource != null && eventData.SourceId == currentInputSourceId) { //get the main cursor back if not the case mainCursor.SetVisiblity(true); mainCursor.OnInputUp(currentInputEventData); drawingCursor.SetActive(false); // Remove self as a modal input handler InputManager.Instance.PopModalInputHandler(); } }