private void OnValidate() { _mapGenerator = FindObjectOfType<MapGenerator>(); }
private void Start() { _mapGenerator = FindObjectOfType<MapGenerator>(); }