示例#1
0
 public void LostPart(Limb.PartType pt)
 {
     DropPart(pt);
     if (bodyParts[Limb.PartType.LeftLeg] == null && bodyParts[Limb.PartType.RightArm] == null)
     {
         StartCoroutine("DropDeadAnimation");
     }
 }
示例#2
0
 public void DropPart(Limb.PartType pt)
 {
     if (bodyParts.ContainsKey(pt) && bodyParts[pt] != null)
     {
         Limb droppingPart = bodyParts[pt];
         bodyParts[pt] = null;
         droppingPart.Toss();
     }
 }
示例#3
0
 public Transform GetMountPoint(Limb.PartType t)
 {
     return(partMountPoint[t]);
 }