We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ce008 commit f7a5d91Copy full SHA for f7a5d91
Assets/Scripts/Gameplay/Models/Collectable.cs
@@ -20,7 +20,7 @@ protected override void OnTriggerEnter(Collider other) {
20
21
public override Vector3 GenerateRandomPosition(float horizontalPosition) {
22
float posY = Random.Range(_posYMinMax.x, _posYMinMax.y);
23
- while (posY < 2 && posY > -2) // exclude bridge position
+ while (posY < 2 && posY > -2) // exclude bridge thickness
24
posY = Random.Range(_posYMinMax.x, _posYMinMax.y);
25
26
return new Vector3(horizontalPosition, posY, transform.position.z);
0 commit comments