public CreatePath(Vector2Int from, Vector2Int tilePos, MyTile.TileType tileType, Vector2Int offset) { this.from = from; this.tilePos = tilePos; this.tileType = tileType; this.offset = offset; }
public bool MyTileType(int dx, int dy, MyTile.TileType type) { if (myTile[dx, dy] != null && myTile[dx, dy].type == type) { return(true); } return(false); }
public Path(Vector2Int tilePos, MyTile.TileType tileType, Vector2Int offset) { this.tilePos = tilePos; this.tileType = tileType; this.offset = offset; }