ReleasePage() 공개 메소드

public ReleasePage ( ) : void
리턴 void
예제 #1
0
    IEnumerator FlipRTL(float xc, float xl, float h, float frameTime, float dx)
    {
        float x = xc + xl;
        float y = (-h / (xl * xl)) * (x - xc) * (x - xc);

        ControledBook.DragRightPageToPoint(new Vector3(x, y, 0));
        for (int i = 0; i < AnimationFramesCount; i++)
        {
            y = (-h / (xl * xl)) * (x - xc) * (x - xc);
            ControledBook.UpdateBookRTLToPoint(new Vector3(x, y, 0));
            yield return(new WaitForSeconds(frameTime));

            x -= dx;
        }
        ControledBook.ReleasePage();
    }
예제 #2
0
    IEnumerator FlipRTL(float xc, float xl, float h, float frameTime, float dx)
    {
        float x = xc + xl;
        float y = (-h / (xl * xl)) * (x - xc) * (x - xc);

        ControledBook.DragRightPageToPoint(new Vector3(x, y, 0));
        for (int i = 0; i < AnimationFramesCount; i++)
        {
            y = (-h / (xl * xl)) * (x - xc) * (x - xc);
            ControledBook.UpdateBookRTLToPoint(new Vector3(x, y, 0));
            yield return(new WaitForSeconds(0));

            x -= dx;
        }
        ControledBook.ReleasePage();

        //修改    2019年7月30日22:49:09
        BookController.Instance.isAutoFlip = true;
    }
예제 #3
0
    IEnumerator FlipRTL(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.DragRightPageToPoint(new Vector3(x, y, 0));
        for (int i = 0; i < AnimationFramesCount; i++)
        {
            y = (-h / (xl * xl)) * (x - xc) * (x - xc);
            ControledBook.UpdateBookRTLToPoint(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 < CSVParser.instance.diary_Contents.Count - 1)
        {
            UIManager.instance.diary_Index++;
        }

        UIManager.instance.ActivateDiary();
    }