public void GenerateGrid(int width, int height) { map = FindObjectOfType <MapImporter>(); map.width = width; map.height = height; map.Generate(); }