コード例 #1
0
 public Branch(GrowthModel growthModel)
 {
     _growthModel  = growthModel;
     ToDirection   = Vector3.up;
     FromDirection = Vector3.up;
     IsLeaf        = true;
 }
コード例 #2
0
 private Branch(Branch parent,
                int id,
                Vector3 toDirection,
                Vector3 fromDirection)
 {
     _growthModel  = parent._growthModel;
     _depth        = parent._depth + 1;
     _parent       = parent;
     _id           = id;
     ToDirection   = toDirection;
     FromDirection = fromDirection;
     IsLeaf        = true;
 }
コード例 #3
0
 public TogTree(GrowthModel growthModel)
 {
     Root = new Branch(growthModel);
 }