TO SQUASH:
Added eye ball
This commit is contained in:
@@ -41,6 +41,7 @@ public class BallSpawner : MonoBehaviour
|
||||
ballQueue.Enqueue(() => SpawnBall(glassBallPrefab));
|
||||
ballQueue.Enqueue(() => SpawnBall(glassBallPrefab));
|
||||
ballQueue.Enqueue(() => SpawnBall(glassBallPrefab));
|
||||
ballQueue.Enqueue(() => SpawnBall(eyeBallPrefab));
|
||||
|
||||
StartCoroutine(SpawnBalls());
|
||||
}
|
||||
@@ -121,7 +122,7 @@ public class BallSpawner : MonoBehaviour
|
||||
bounds = boardRenderer.bounds;
|
||||
}
|
||||
|
||||
const float edgeInset = 0.05f;
|
||||
const float edgeInset = 0.1f;
|
||||
float randomX = Random.Range(bounds.min.x + edgeInset, bounds.max.x - edgeInset);
|
||||
float randomY = Random.Range(bounds.min.y + edgeInset, bounds.max.y - edgeInset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user