//Sets up Referances void Awake() { muzzleFlash = GetComponentInChildren <ParticleSystem>(); enemyHealth = GetComponent <EnemyHealth>(); zanicHealth = GetComponent <ZanicHealth>(); gunAudio = GetComponent <AudioSource>(); shotgunPU = GetComponent <ShotgunPowerup>(); plasmagunPU = GetComponent <PlasmagunPowerup>(); plasmagun = PlayersPlasmagun.GetComponent <PlasmaGun>(); minigunPU = GetComponent <MinigunPowerUp>(); RingPU = GetComponent <RingPowerup>(); startTarget = GetComponent <StartTarget>(); gunFire = GetComponentInChildren <Animation>(); zem = GetComponent <ActivateZem>(); }
void Awake() { shotgunflash = GetComponentInChildren <ParticleSystem>(); shotgunstart = GetComponent <AudioSource>(); enemyHealth = GetComponent <EnemyHealth>(); gunAudio = GetComponent <AudioSource>(); shotgunPU = GetComponent <ShotgunPowerup>(); plasmagun = playersPlasmagun.GetComponent <PlasmaGun>(); plasmagunPU = GetComponent <PlasmagunPowerup>(); flamer = playersFlamer.GetComponent <FlameThrower2>(); minigun = playersMinigun.GetComponent <Minigun>(); gunFire = GetComponentInChildren <Animation>(); // gunFire = GetComponentInChildren<Animation>(); zanicHealth = GetComponent <ZanicHealth>(); RingPU = GetComponent <RingPowerup>(); zem = GetComponent <ActivateZem>(); // Start is called before the first frame update }