public void DestroyRagdollComponent(LimbsController limbController) { if (localCharacterJoint != null) { Destroy(localCharacterJoint); } Destroy(localCollider); Destroy(localRigidBody); limbController.ragdollComponentControllers.Remove(this); Destroy(this); }
public override void Init() { limbsController = GetComponentInParent <LimbsController>(); }