void Awake() { Textures.Create(); normal.mainTexture = Textures.TILEMAP; tiles = new Tile[width, height]; geometry = new Geometry(2); for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { tiles[x, y] = new Outside(); } } GetComponent <MeshRenderer>().sharedMaterials = new Material[] { normal, outside }; Create(); }