Пример #1
0
 private void AttachObject()
 {
     ////Debug.Log("Attaching!");
     //attachingObject.GetComponent<Collider>().isTrigger = false;
     activated = false;
     attachingController.GetTransitionGuide().SetPositionAndRotation(this.transform.position, this.transform.rotation);
     objectGuide.SetPositionAndRotation(this.transform.position, trackerOffset.rotation);
     owningObject.busy    = false;
     attachingObject.busy = false;
     attachingObject.AttachTo(owningObject, this);
     attachingController.ReleaseObject();
     attachStop = true;
     attachingObject.GetComponent <BoxCollider>().isTrigger = false;
     owningObject.IgnoreCollision(attachingObject.GetComponent <Collider>(), false);
     owningObject.ResetCenterOfMass();
 }