Пример #1
0
 void Awake()
 {
     // Setting up the references.
     player       = GameObject.FindGameObjectWithTag("Player");
     playerHealth = player.GetComponent <PlayerHealth>();
     zanicHealth  = GetComponent <ZanicHealth>();
 }
Пример #2
0
    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>();
    }
Пример #3
0
    //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>();
    }
Пример #4
0
    //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>();
    }
Пример #5
0
    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
    }