private ParticleSystem explosionFX; // Reference to the particle system of the explosion effect. void Awake () { // Setting up references. explosionFX = GameObject.FindGameObjectWithTag ("ExplosionFX").GetComponent<ParticleSystem> (); pickupSpawner = GameObject.Find ("pickupManager").GetComponent<PickupSpawner> (); if (GameObject.FindGameObjectWithTag ("Player")) layBombs = GameObject.FindGameObjectWithTag ("Player").GetComponent<LayBombs> (); }
private ParticleSystem explosionFX; // Reference to the particle system of the explosion effect. void Awake() { // Setting up references. explosionFX = GameObject.FindGameObjectWithTag("ExplosionFX").GetComponent <ParticleSystem> (); pickupSpawner = GameObject.Find("pickupManager").GetComponent <PickupSpawner> (); if (GameObject.FindGameObjectWithTag("Player")) { layBombs = GameObject.FindGameObjectWithTag("Player").GetComponent <LayBombs> (); } }