public Layer( string name, TileMapView view, Func <Tile, int> getTileData, Func <int, Texture> getTexture, Func <Tile, Vector2> getOffset = null, Func <Tile, int> getWidth = null, Func <Tile, int> getHeight = null) { _view = view; GetTileData = getTileData; GetTexture = getTexture; GetOffset = getOffset ?? (tile => Vector2.zero); GetWidth = getWidth ?? (tile => 1); GetHeight = getHeight ?? (tile => 1); Renderable = InitRenderable(name); Mesh = Renderable.GetComponent <MeshFilter>().mesh; //smell uv = InitUV(); }
public Lighting(TileMapView view) { _view = view; lights = new List <GameObject>(); }