Beispiel #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;
	}
Beispiel #2
0
	public void init(MuscleClk clock) {
		this.clock = clock;
	}