DragLeftPageToPoint() public method

public DragLeftPageToPoint ( Vector3 point ) : void
point Vector3
return void
Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    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();
    }
Exemplo n.º 3
0
    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;
    }