On Prototype1 (cars) bonus features. I want to reset the position of the vehicles coming from opposite direction. I've place them based on Random.Next()...
At every Update --> I check if reset is required (transform.position.x/y/z are out of bounds) --> if yes --> Reset()
private void Reset()
// 4 < x < 20
var x = Convert.ToSingle(random.Next(4, 21));
// -5 < z < 40
var z = Convert.ToSingle(random.Next(-5, 41));
transform.position = new Vector3(x, y, z);
Running the code in debug from Visual Studio it is visible that the code behind gets updated - but in Unity the UI does not corresponds to the same values.
.cs is saved.
Feels like all 3 coordinates are just offset by certain values, not quite sure why though.