Skip to content
Snippets Groups Projects
Commit 244c48cb authored by mitchelkovacs's avatar mitchelkovacs
Browse files

even less enemies and platfroms

parent ce3758ae
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -12,10 +12,10 @@ public class RandomPlatforms : MonoBehaviour {
platform = GameObject.Find("platform");
numPlatforms = Random.Range(30, 60);
enemy = GameObject.Find("Enemy");
numEnemies = Random.Range(2, 8);
numEnemies = Random.Range(2, 5);
for(int i = 0; i < numPlatforms; i++) {
ranIndex = Random.Range(0, 5);
GameObject platformapus = Instantiate(platform, new Vector3( Random.Range(-20, 124), (float)heights[ranIndex], 10), Quaternion.identity) as GameObject;
GameObject platformapus = Instantiate(platform, new Vector3( Random.Range(-20, 67 ), (float)heights[ranIndex], 10), Quaternion.identity) as GameObject;
}
for (int i = 0; i < numEnemies; i++)
{
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment