IEnumerator FlipLTR(float xc, float xl, float h, float frameTime, float dx) { // 일기장 UI 비활성화하는 곳 UIManager.instance.DeActivateDiary(); float x = xc - xl; float y = (-h / (xl * xl)) * (x - xc) * (x - xc); ControledBook.DragLeftPageToPoint(new Vector3(x, y, 0)); for (int i = 0; i < AnimationFramesCount; i++) { y = (-h / (xl * xl)) * (x - xc) * (x - xc); ControledBook.UpdateBookLTRToPoint(new Vector3(x, y, 0)); yield return(new WaitForSeconds(frameTime)); x += dx; } ControledBook.ReleasePage(); yield return(new WaitForSeconds(0.2f)); // 일기장 UI 활성화하는 곳 // 일기장 텍스트 변경하는 곳 if (UIManager.instance.diary_Index > 0) { UIManager.instance.diary_Index--; } UIManager.instance.ActivateDiary(); }
IEnumerator FlipLTR(float xc, float xl, float h, float frameTime, float dx) { float x = xc - xl; float y = (-h / (xl * xl)) * (x - xc) * (x - xc); ControledBook.DragLeftPageToPoint(new Vector3(x, y, 0)); for (int i = 0; i < AnimationFramesCount; i++) { y = (-h / (xl * xl)) * (x - xc) * (x - xc); ControledBook.UpdateBookLTRToPoint(new Vector3(x, y, 0)); yield return(new WaitForSeconds(frameTime)); x += dx; } ControledBook.ReleasePage(); //_focusBookScript._disableFocus = false; //_bookScript.interactable = true; }
IEnumerator FlipLTR(float xc, float xl, float h, float frameTime, float dx) { float x = xc - xl; float y = (-h / (xl * xl)) * (x - xc) * (x - xc); ControledBook.DragLeftPageToPoint(new Vector3(x, y, 0)); for (int i = 0; i < AnimationFramesCount; i++) { y = (-h / (xl * xl)) * (x - xc) * (x - xc); ControledBook.UpdateBookLTRToPoint(new Vector3(x, y, 0)); yield return(new WaitForSeconds(frameTime)); x += dx; } ControledBook.ReleasePage(ControledBook.IfMouseBeyond()); }
IEnumerator FlipLTR(float xc, float xl, float h, float frameTime, float dx) { float x = xc - xl; float y = (-h / (xl * xl)) * (x - xc) * (x - xc); ControledBook.DragLeftPageToPoint(new Vector3(x, y, 0)); for (int i = 0; i < AnimationFramesCount; i++) { y = (-h / (xl * xl)) * (x - xc) * (x - xc); ControledBook.UpdateBookLTRToPoint(new Vector3(x, y, 0)); yield return(new WaitForSeconds(0)); x += dx; } ControledBook.ReleasePage(); //修改 2019年7月30日22:49:09 BookController.Instance.isAutoFlip = true; }