예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }