a guest Aug 9th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. debreeTimer--;
  2.             float t = Random.Range(0.005f, 0.1f);
  3.             yield return new WaitForSeconds(t);
  4.             Debug.Log("Spawned");
  5.             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;
  6.             yield return new WaitForSeconds(1);
  7.             Instantiate(BigTree, spawnSpot, Quaternion.identity);
  8.             BigTreeTimer = Random.Range(30.0f, 45.0f);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand