public void RegenMap() { GameObject mapScript = GameObject.FindGameObjectWithTag("MapTiles"); ms = mapScript.GetComponent <MapScript>(); ms.generatorSettings = this.generatorSettings; ms.ResetMap(); }