コード例 #1
0
    public void ClearObjectInHands()
    {
        if (objectInHands == null)
        {
            return;
        }

        if (!ReferenceEquals(objectLeftHand, objectInHands) || !ReferenceEquals(objectRightHand, objectInHands))
        {
            objectInHands.ChangeParent(null);
            objectInHands.AddForceInDirection(playerCamera.transform.forward);
            objectInHands = null;
        }
    }