private void DropBaby() { if (heldBaby != null) { heldBaby.transform.position = transform.position; heldBaby.WasDropped(); heldBaby = null; } }
public void DropResource() { holdingState = PlayerHoldingState.Nothing; if (heldBaby != null) { var position = transform.position; position.x -= 1.0f; heldBaby.transform.position = position; heldBaby.WasDropped(); heldBaby = null; } }