示例#1
0
 public void DropItem()
 {
     StopDelivering();
     if (carriedItem != null)
     {
         carriedItem.SetCarrier(null);
         carriedItem = null;
     }
 }
示例#2
0
 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();
 }