public float Distance(Vector3Int node, Vector3Int neighbor) { return(5 / (allowedTiles.GetSpeed(tilemap.GetTile(neighbor)))); }
protected void UpdateTimeBetweenSteps(TileBase tileBase) { speed = allowedTiles.GetSpeed(tileBase); timeBetweenSteps = 5 / speed; }