コード例 #1
0
    /**
     * Throws the item to the ground
     */
    private void throwItem()
    {
        // Debug.Log ("throw item");

        currentItem.activatePhysics();

        currentItem.rigidbody.AddForce(gameObject.transform.forward * throwForce, ForceMode.Impulse);

        currentItem = null;
    }