示例#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> ();
				}
				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> ();
        }