예제 #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> ();
				}
예제 #2
0
				private bool landed;					// Whether or not the crate has landed.


				void Awake ()
				{
						// Setting up the references.
						pickupSpawner = GameObject.Find ("pickupManager").GetComponent<PickupSpawner> ();
						anim = transform.root.GetComponent<Animator> ();
				}
예제 #3
0
        private bool landed;                                            // Whether or not the crate has landed.


        void Awake()
        {
            // Setting up the references.
            pickupSpawner = GameObject.Find("pickupManager").GetComponent <PickupSpawner> ();
            anim          = transform.root.GetComponent <Animator> ();
        }