protected override void OnDestroy() { base.OnDestroy(); if (AttachJoint.IsValid()) { AttachJoint.Remove(); } if (AttachRope != null) { AttachRope.Destroy(true); } }