public void Init() { Debug.Log ("Start"); ParticleSystem ps = gameObject.GetComponent(typeof(ParticleSystem)) as ParticleSystem; ps.Stop(); ps.Clear(); dataRequest = new WWW (dataUrl); //GetNextLeve manager = transform.parent.gameObject.GetComponent<SceneManager>(); //StartCoroutine (WaitForData ()); GetData(manager.GetNextLevel()); transform.position = new Vector3(transform.position.x, transform.position.y, transform.position.z+zOffset); }