/// <summary> /// 离开配件 /// </summary> /// <param name="locationParent"></param> private void ExitPart() { if (Input.GetKeyDown(KeyCode.F) && usingPart == true && currtControl != null) { currtControl.ExitPart(transform); usingPart = false; currtControl = null; } }