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; }
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; }
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; }
void Start() { cogPrefabs = Resources.Load <SCR_CogPrefabs>("Cog Prefabs"); maxHealth = health; healthBar.fillAmount = health / maxHealth; }