public void DropItem() { StopDelivering(); if (carriedItem != null) { carriedItem.SetCarrier(null); carriedItem = null; } }
private void GrabItem(Throwable item) { carriedItem = item; carriedItem.SetKinematic(true); carriedItem.SetCarrier(this); carriedItem.ActivateRobotBeam(Instantiate <ParticleSystem> (robotBeamPrefab, carriedItem.transform.position, Quaternion.identity, carriedItem.transform)); StartDelivering(); SetupCarryRange(); UpdateCarriedItem(); SearchForTarget(); }