private void OnMouseDragRightPage() { if (CurrentLeftId < _bookSprites.Length - 1) { _isDragging = true; _dragPage = new DragRightPage(this, _model, _leftSideOfPage, _rightSideOfPage, _rightPage.transform.position); _dragPage.BeginDragPage(World2LoaclPos(Input.mousePosition)); UpdateID(_isDragging); } }
/// <summary> /// 定义鼠标拖动右侧页方法 /// </summary> private void OnBeginDragRight() { if (_currentLeftId < _sprites.Length - 1) { _dragPage = new DragRightPage(this, _model, _leftSide, _rightSide, _rightPage.transform.position); _dragPage.BeginDragPage(World2LocalPos(Input.mousePosition)); _isDragging = true; UpdateID(); } }
private void OnMouseDragLeftPage() { if (CurrentLeftId > 0) { _dragPage = new DragLeftPage(this, _model, _rightSideOfPage, _leftSideOfPage, _leftPage.transform.position); _dragPage.BeginDragPage(World2LoaclPos(Input.mousePosition)); _isDragging = true; CurrentLeftId -= 2; UpdateID(_isDragging); } }