void Awake() { _agent = GetComponent <NavMeshAgent>(); _vision = GetComponent <EnemyVision>(); _health = GetComponent <EnemyHealth>(); _player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); _chadistAI = GameObject.FindGameObjectWithTag("Chadist AI").GetComponent <ChadistAI>(); }
void Awake() { _damageable = GetComponent <Damageable>(); _behaviour = GetComponent <EnemyBehaviour>(); _health = GetComponent <EnemyHealth>(); _player = GameObject.FindWithTag("Player").GetComponent <PlayerController>(); _playerHealth = _player.GetComponent <PlayerHealth>(); _chadistAI = GameObject.FindWithTag("Chadist AI").GetComponent <ChadistAI>(); }
void Awake() { _behaviour = GetComponent <EnemyBehaviour>(); _vision = GetComponent <EnemyVision>(); _rb = GetComponent <Rigidbody>(); _health = GetComponent <EnemyHealth>(); _player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); _chadistAI = GameObject.FindGameObjectWithTag("Chadist AI").GetComponent <ChadistAI>(); }
private void Awake() { _weapon = GetComponent <Weapon>(); _chadistAI = GameObject.FindGameObjectWithTag("Chadist AI").GetComponent <ChadistAI>(); }