void Awake()
    {
        _agent  = GetComponent <NavMeshAgent>();
        _vision = GetComponent <EnemyVision>();
        _health = GetComponent <EnemyHealth>();

        _player    = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
        _chadistAI = GameObject.FindGameObjectWithTag("Chadist AI").GetComponent <ChadistAI>();
    }
Ejemplo n.º 2
0
 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>();
 }
Ejemplo n.º 3
0
    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>();
    }
Ejemplo n.º 4
0
 private void Awake()
 {
     _weapon    = GetComponent <Weapon>();
     _chadistAI = GameObject.FindGameObjectWithTag("Chadist AI").GetComponent <ChadistAI>();
 }