//A ca creation un joint creer automatique la branche suivante car il n'a aucune autre utilité que de relié 2 branche.
 //C'est ici qu'est generer aleatoirement la prochaine branche
 public TreeElementJoint(TreeElementBranche rootBranche)
 {
     this._monsterCreator = rootBranche._monsterCreator;
     _treeIteration       = rootBranche._treeIteration + 1;
     //-------------------Debug Log---------------------
     Debug.Log("new Tree joint" + this._treeIteration);
     //-------------------Debug Log---------------------
     _rootBranche = rootBranche;
     _branche     = RandomCreateTreeBranche(this);
 }
    // Use this for initialization
    void Start()
    {
        joints = new List <TreeElementJoint>();
        root   = new TreeElementBranche(mScript);
        roots  = new List <TreeElementBranche>();
        preparetest();
        //roots[0].RandomTreeGeneration();
        roots[0].InstanciateMonster();

        /*
         * for (int i = 0; i < joints.Count; i++)
         * {
         *  Debug.Log(" joints size"+joints.Count+" : joint " + joints[i]._treeIteration);
         * }*/
        //root.DestroyMonster();
    }
 public void DeleteTree()
 {
     this._branche.DeleteTree();
     this._branche = null;
 }