Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- debreeTimer--;
- float t = Random.Range(0.005f, 0.1f);
- yield return new WaitForSeconds(t);
- Debug.Log("Spawned");
- GameObject debree = Instantiate(debrees[(Random.Range(0, debrees.Length))], new Vector2(spawnSpot.x + Random.Range(-1.0f, 1.0f), spawnSpot.y -10), Quaternion.identity) as GameObject;
- yield return new WaitForSeconds(1);
- Instantiate(BigTree, spawnSpot, Quaternion.identity);
- BigTreeTimer = Random.Range(30.0f, 45.0f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement