Enemies: spawn to the top, clouds only after 3 heights

parent eb2fa495
......@@ -35,11 +35,11 @@ public class Spawner : MonoBehaviour
var r = _rand.Next(100);
if (r < 20)
Instantiate(StaticEnemy, new Vector3(_rightBorder, _rand.Next(1, 9), 0), Quaternion.identity);
Instantiate(StaticEnemy, new Vector3(_rightBorder, _rand.Next(3, 12), 0), Quaternion.identity);
else if (r < 45)
Instantiate(Toluen, new Vector3(_rightBorder, _rand.Next(1, 9), 0), Quaternion.identity);
r = _rand.Next(100);
if (r < 50)
Instantiate(BasicEnemy, new Vector3(_rightBorder, _rand.Next(1, 9), 0), Quaternion.identity);
Instantiate(BasicEnemy, new Vector3(_rightBorder, _rand.Next(1, 12), 0), Quaternion.identity);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment