示例#1
0
        // ebaender
        protected virtual void OnAttachedToHand(Hand hand)
        {
            firstComputationAfterAttached = true;
            attachedHandleType            = hand.LastCollider.GetComponent <PageHandle>().handleType;
            hand.Hide();
            if (rotateGameObject && rotateAfterDetach)
            {
                transform.localRotation = start;
            }

            if (Book.pagePhysicsController != null)
            {
                Book.pagePhysicsController.PageDriveAttached(hand);
            }
        }
示例#2
0
        // ebaender
        protected virtual void OnAttachedToHand(Hand hand)
        {
            firstComputationAfterAttached = true;
            attachedHandleType            = Book.coverMapping.value > 0.5f ? PageHandle.Type.Cover : PageHandle.Type.Back;
            hand.Hide();
            if (rotateGameObject && rotateAfterDetach)
            {
                transform.localRotation = start;
            }

            if (Book.coverPhysicsController != null)
            {
                Book.coverPhysicsController.DriveAttached();
            }
        }