/// <summary> /// Ensures the health master of all sub body parts are the same as their parent, and that the /// health master and body part containers know of all contained body parts /// </summary> /// <param name="implant">Body Part to be initialized</param> public void SetUpBodyPart(BodyPart implant) { implant.HealthMaster = HealthMaster; if (HealthMaster == null) { return; } HealthMaster.AddNewImplant(implant); SubBodyPartAdded(implant); }
/// <summary> /// Ensures the health master of all sub body parts are the same as their parent, and that the /// health master and body part containers know of all contained body parts /// </summary> /// <param name="implant">Body Part to be initialized</param> public void SetUpBodyPart(BodyPart implant) { implant.HealthMaster = HealthMaster; HealthMaster.AddNewImplant(implant); SubBodyPartAdded(implant); }