public Limb(LimbComponentType type, LimbPosition position, float humanoidZ, bool isHuman) : this(type, position, humanoidZ) { if (isHuman) { this.arm = ArmSubType.Human; this.head = HeadSubType.Human; this.leg = LegSubType.Human; this.torso = TorsoSubType.Human; } }
//make a random limb of this type public Limb(LimbComponentType type, LimbPosition position, float humanoidZ) : base() { this.type = type; this.position = position; this.arm = (ArmSubType)random.Next(0, 3); this.head = (HeadSubType)headChoice[random.Next(0, headChoice.Length)]; this.leg = (LegSubType)random.Next(0, 2); this.torso = (TorsoSubType)random.Next(0, 1); this.humanoidZ = humanoidZ; }