added new slimes, fixed slime generation
This commit is contained in:
@@ -41,7 +41,7 @@ public class Tile : MonoBehaviour
|
||||
public List<Vector3> getSpawnLocations()
|
||||
{
|
||||
List<Vector3> list = new List<Vector3>();
|
||||
int objectAmount = objectAmount = rand.Next(40, 151);
|
||||
int objectAmount = rand.Next(40, 151);
|
||||
int iterations = 0;
|
||||
Vector3 newPoint;
|
||||
bool canSpawn;
|
||||
@@ -52,7 +52,7 @@ public class Tile : MonoBehaviour
|
||||
newPoint = new Vector3(rand.Next(-40, 40) + 100 * position.x, 50, rand.Next(-40, 40) + 100 * position.z);
|
||||
foreach (Vector3 vector in list)
|
||||
{
|
||||
if (Vector3.Distance(vector, newPoint) < 10)
|
||||
if (Vector3.Distance(vector, newPoint) < 12.5f)
|
||||
{
|
||||
canSpawn = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user