void Start () { pot = 30; dragged = false; spawns = GameObject.Find ("Fruitspawns").GetComponent<FruitSpawns> (); burpy = GameObject.FindGameObjectWithTag ("Burpy").GetComponent<Burpy> (); controller = GameObject.FindGameObjectWithTag ("GameController").GetComponent<ScoreController>(); }
void Awake() { dragged = false; if (Application.loadedLevelName.Contains("7")) { spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> (); } else { spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> (); } burpy = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> (); controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>(); }
void Start() { dragged = false; if (Application.loadedLevelName.Contains("7")) { spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> (); } else { spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> (); } //while (burpy=null) { burpy = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> (); //} controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>(); camPos = GameObject.Find("Main Camera").transform.position; }
void Start() { if (Application.loadedLevelName.Contains("7")) { spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <GiantbugFrtSpawns> (); } else { spawns = GameObject.FindGameObjectWithTag("Spawner").GetComponent <FruitSpawns> (); } poolingSystem = PoolingSystem.Instance; dragged = false; burpy = GameObject.FindGameObjectWithTag("Burpy").GetComponent <Burpy> (); controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <ScoreController>(); prtclpos = new Vector3(0.0f, 4.0f, 0.0f); camPos = GameObject.Find("Main Camera").transform.position; }