示例#1
0
 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);
 }
示例#2
0
 public TreeElementBranche RandomCreateTreeBranche(TreeElementJoint joint)
 {
     return(new TreeElementBranche(joint, _monsterCreator.getRandomPartID()));
 }