public Drop ( GameObject _player, NymphSpawning, _nymphSpawning ) : void | ||
_player | GameObject | |
_nymphSpawning | NymphSpawning, | |
리턴 | void |
public void Drop() { _handIKController.LerpPositon(0); _handIKController.LerpRotation(0); currentHeld.Drop(); _handIKController.leftHand = false; _handIKController.rightHand = false; _handIKController.leftObject = null; _handIKController.rightObject = null; }
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(); } }
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; } }
void DropItem() { // Debug.Log("Drop Item"); heldItem.Drop(); heldItem = null; }