public Muscle(Node l, Node r): base(Cal.initMuscleGirth, Random.Range(Cal.minMuscleLength, Cal.maxMuscleLength), PrimitiveType.Cube) { // create a clock this.clock = new MuscleClk(); // add the muscle to the attached list of each node l.attach(this); r.attach(this); // attach the nodes this.left = l; this.right = r; }
public void init(MuscleClk clock) { this.clock = clock; }