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