void Awake() { // Setting up the references. player = GameObject.FindGameObjectWithTag("Player"); playerHealth = player.GetComponent <PlayerHealth>(); zanicHealth = GetComponent <ZanicHealth>(); }
void Awake() { // Set up the references. player = GameObject.FindGameObjectWithTag("Player").transform; playerHealth = player.GetComponent <PlayerHealth>(); zanicHealth = GetComponent <ZanicHealth>(); //enemyHealth = GetComponent <EnemyHealth> (); nav = GetComponent <UnityEngine.AI.NavMeshAgent>(); }
//Sets up Referances void Awake() { // muzzleFlash = GetComponentInChildren<ParticleSystem>(); enemyHealth = GetComponent <EnemyHealth>(); gunAudio = GetComponent <AudioSource>(); shotgun = GetComponent <Shotgun>(); shotgunPU = GetComponent <ShotgunPowerup>(); // gunFire = GetComponentInChildren<Animation>(); gunFire = GetComponentInChildren <Animation>(); zanicHealth = GetComponent <ZanicHealth>(); RingPU = GetComponent <RingPowerup>(); zem = GetComponent <ActivateZem>(); }
//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 }