コード例 #1
0
    public void dropBag(Vector3 bagDropPosition)
    {
        if (bagDropPosition != Vector3.zero)
        {
            currentBagPlacing.transform.position = new Vector3(bagDropPosition.x, bagDropPosition.y + currentBagPlacing.halfBagHeight, bagDropPosition.z);
        }

        currentBagPlacing.disableInitialColliders();
        currentBagPlacing.freezeContents();
        currentBagPlacing.setGravity(true);
    }