void OnFinishHandleMovement() { RebuildGizmoMesh(Vector3.one); RebuildGizmoMatrix(); OnHandleFinish?.Invoke(); StartCoroutine(SetDraggingFalse()); }
private IEnumerator InvokeFinishHandleEvent() { //Wait until the end of the frame so that the OnHandleFinish event doesn't overlap with the OnMouseUp event yield return(new WaitForEndOfFrame()); //After dragging the handle, release the cursor EditorManager.Instance.ReleaseCursor(); //Notify all listeners that the handle is no longer being interacted with OnHandleFinish?.Invoke(); }