예제 #1
0
 public GStructureDimensions(StructureSizes size, int dim_matrix_size, int[,] dim_matrix, Vector2 dim_matrix_origin)
 {
     this.size              = size;
     this.dim_matrix_size   = dim_matrix_size;
     this.dim_matrix        = dim_matrix;
     this.dim_matrix_origin = dim_matrix_origin;
 }
예제 #2
0
 public GStructureDimensions(StructureSizes size, int dim_matrix_size, int[,] dim_matrix)
 {
     this.size            = size;
     this.dim_matrix_size = dim_matrix_size;
     this.dim_matrix      = dim_matrix;
     dim_matrix_origin    = Vector2.zero;
 }
예제 #3
0
    GStructure getRandomTree(StructureSizes size)
    {
        GStructure veg     = null;
        int        vegType = UnityEngine.Random.Range(0, 100);

        return(veg);
    }
예제 #4
0
 public GStructureDimensions(StructureSizes size)
 {
     this.size = size;
     if ((int)size > (int)StructureSizes.Medium)
     {
         Debug.LogError("You must provide a dimension matrix and its size for structures with a size greater than Medium. Use the other constructor.");
     }
 }
예제 #5
0
    GStructure getRandomBush(StructureSizes size)
    {
        GStructure veg = null;
        int vegType = UnityEngine.Random.Range(0, 100);

        return veg;
    }