A tip for your Prototype 2: In your PlayerController script, make your xRange variable static
---public static float xRange = 15.0f;---
so that it can be used in your SpawnManager script as your spawnRangeX variable
---script private float spawnRangeX = PlayerController.xRange;---
This way your animals will never spawn outside of your character's range even if your start tweaking variables later.