private IEnumerator GoDebug(int index) { switch (index) { case 1: yield return(new WaitForSeconds(1)); _pageView.GotoPage(1); _scissors.ShowDone(); break; case 2: yield return(new WaitForSeconds(1)); _pageView.GotoPage(2); _scissors.ShowDone(); _shaverSharp.ShowDone(); break; case 3: yield return(new WaitForSeconds(1)); _pageView.GotoPage(7); break; } }
public void OnEndDrag(PointerEventData eventData) { if (!this.enabled || !_canDrag || !_isDown) { return; } _isDragging = false; _isDown = false; if (null != OnPrevEndDragAction) { OnPrevEndDragAction.Invoke(this, eventData); } DOTween.Kill(_tool); if (Math.Abs(_dragChangeScale) > float.Epsilon) { _tool.DOScale(_toolCacheScale, 0.25f); } if (Math.Abs(_dragChangeRotate) > float.Epsilon) { _tool.DOLocalRotate(_toolCacheRotation, 0.25f, RotateMode.Fast); } CheckHoverEvent(true); if (_isReleaseAutoBack) { BackPosition(); } else { _tool.position -= new Vector3(0, 0, _dragOffsetZ); if (_prevParent) { _tool.SetParent(_prevParent); _tool.SetSiblingIndex(_toolCacheIndex); _canDrag = true; } } if (null != _pageView) { _pageView.GotoPage(_pageView.CurrentPage); } if (null != _tipDragging) { _tipDragging.SetActive(false); } PlaySoundEndDrag(); SetDragEffectPlay(false); if (null != OnEndDragAction) { OnEndDragAction.Invoke(this, eventData); } GetComponent <Graphic>().raycastTarget = true; }