Drop() 공개 메소드

public Drop ( GameObject _player, NymphSpawning, _nymphSpawning ) : void
_player GameObject
_nymphSpawning NymphSpawning,
리턴 void
예제 #1
0
    public void Drop()
    {
        _handIKController.LerpPositon(0);
        _handIKController.LerpRotation(0);
        currentHeld.Drop();

        _handIKController.leftHand    = false;
        _handIKController.rightHand   = false;
        _handIKController.leftObject  = null;
        _handIKController.rightObject = null;
    }
예제 #2
0
    public void DropCarriedObject()
    {
        if (carriedObject == null)
        {
            return;
        }

        carriedObject.transform.parent = null;
        carriedBody.velocity           = characterController.velocity * dropVelocityMultiplier;
        carriedObject.Drop();
        carriedObject = null;
        carriedBody   = null;
        if (interactionAbility != null)
        {
            interactionAbility.OnCarriedObjectDropped();
        }
    }
예제 #3
0
    void Interact()
    {
        if (canister)
        {
            return;
        }
        Pickupable held = PlayerController.instance.charController.heldObject;

        if (held)
        {
            held.Drop();
            canister = held.GetComponent <Canister>();
            canister.transform.SetParent(transform);
            canister.transform.rotation      = Quaternion.identity;
            canister.transform.localPosition = new Vector3(0, 0.25f, 0);
            canister.GetComponent <Rigidbody2D>().simulated = false;
            canister.GetComponent <Collider2D>().enabled    = true;
        }
    }
예제 #4
0
 void DropItem()
 {
     // Debug.Log("Drop Item");
     heldItem.Drop();
     heldItem = null;
 }