Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Biome
- {
- public static int TILE_SIZE = 2;
- public BiomeType bType;
- public TextureInfomation texInfo;
- public float[,] biomeHeightMap;
- public Biome(BiomeType b)
- {
- bType = b;
- //need to import the image
- var temp = Resources.Load(bType.ToString()) as Texture2D;
- texInfo = new TextureInfomation();
- texInfo.tex = temp;
- texInfo.terrainLayerID = -1;
- Debug.Log(temp.name);
- }
- }
- public struct TextureInfomation
- {
- public Texture2D tex;
- public int terrainLayerID;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement