void Awake()
 {
     cogPrefabs        = Resources.Load <SCR_CogPrefabs>("Cog Prefabs");
     tickerAgent       = GetComponent <NavMeshAgent>();
     tickerAnim        = GetComponentInChildren <Animator>();
     pathDirectionType = Random.Range(0, 2);
     currentPathPoints = initialPathPoints;
     UpdateHealthUI();
 }
 void Awake()
 {
     cogPrefabs             = Resources.Load <SCR_CogPrefabs>("Cog Prefabs");
     newPositon             = Vector3.zero;
     gruntAgent             = GetComponent <NavMeshAgent>();
     gruntAgent.speed       = 0;
     gruntAnim              = GetComponentInChildren <Animator>();
     health                 = highestHealth;
     gruntAgent.destination = transform.position;
 }
Esempio n. 3
0
 void Awake()
 {
     cogPrefabs             = Resources.Load <SCR_CogPrefabs>("Cog Prefabs");
     sonarAgent             = GetComponent <NavMeshAgent>();
     sonarAnim              = GetComponentInChildren <Animator>();
     projectileBeam.enabled = false;
     maxHealth              = health;
     healthBar.fillAmount   = health / maxHealth;
     latestTicker           = null;
     chargeUpTimer          = sonarChargeSound.clip.length;
 }
Esempio n. 4
0
    void Awake()
    {
        cogPrefabs = Resources.Load <SCR_CogPrefabs>("Cog Prefabs");
        //rend = GetComponent<Renderer>();
        //rend.material = InvincibleMaterial;
        _scannerEffectScript         = Camera.main.GetComponent <SCR_ScannerEffect>();
        _scannerEffectScript.enabled = true;
        currentTimer              = waveTimer;
        buffAudioSource           = GetComponent <AudioSource>();
        pulsingGeneratorsMaterial = pulsingGeneratorsRenderer.material;
        currentEmissionColour     = invincibleColour;

        maxHealth            = health;
        healthBar.fillAmount = health / maxHealth;
    }
Esempio n. 5
0
 void Start()
 {
     cogPrefabs           = Resources.Load <SCR_CogPrefabs>("Cog Prefabs");
     maxHealth            = health;
     healthBar.fillAmount = health / maxHealth;
 }