Ejemplo n.º 1
0
	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;
	}
Ejemplo n.º 2
0
	public void init(MuscleClk clock) {
		this.clock = clock;
	}