public Finger(FingerOptions options, Func <Bone> boneFactory) { this.options = options; this.boneFactory = boneFactory; // Use the Joints from FingerOptions. for (int i = 0; i < options.Joints; i++) { var bone = boneFactory(); Joints.Add(bone); } }
public Finger(FingerOptions options, Func<Bone> boneFactory) { this.options = options; this.boneFactory = boneFactory; // Use the Joints from FingerOptions. for (int i = 0; i < options.Joints; i++) { var bone = boneFactory(); Joints.Add(bone); } }