public TreeElementBranche(TreeElementJoint rootJoint, int idPart) { this._treeIteration = rootJoint._treeIteration + 1; //-------------------Debug Log--------------------- Debug.Log("new Tree branche" + this._treeIteration); //-------------------Debug Log--------------------- this._idpart = idPart; this._monsterCreator = rootJoint._monsterCreator; _joints = new List <TreeElementJoint>(); _joints.Add(rootJoint); _maxJoints = this._monsterCreator.getNumberOfJointWithId(this._idpart); }
public TreeElementBranche RandomCreateTreeBranche(TreeElementJoint joint) { return(new TreeElementBranche(joint, _monsterCreator.getRandomPartID())); }