Example #1
0
				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> ();
				}
Example #2
0
        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> ();
            }
        }