void PrepareBodyParts() { status = new PlayerStatus(); headslot = new HeadSlot(); bodyslot = new BodySlot(); larmslot = new LeftArmSlot(); rarmslot = new RightArmSlot(); llegslot = new LeftLegSlot(); rlegslot = new RightLegSlot(); partslot = new Dictionary <string, BodypartSlot> { { "head", headslot }, { "body", bodyslot }, { "leftarm", larmslot }, { "rightarm", rarmslot }, { "leftleg", llegslot }, { "rightleg", rlegslot } }; headslot.ConnectPart(new Head()); bodyslot.ConnectPart(new Body()); larmslot.ConnectPart(new LeftArm()); rarmslot.ConnectPart(new RightArm()); llegslot.ConnectPart(new LeftLeg()); rlegslot.ConnectPart(new RightLeg()); }