Example #1
0
 // Use this for initialization
 void Start()
 {
     _movement = GetComponent <Surt_Movement>();
     _attack   = GetComponentInChildren <Surt_Attack>();
     _hp       = GetComponent <Enemy_HP>();
     _animator = GetComponent <Animator>();
 }
Example #2
0
 // Use this for initialization
 void Awake()
 {
     _transform    = GetComponent <Transform>();
     _attack       = FindObjectOfType <Surt_Attack>();
     _player       = FindObjectOfType <Player_HP>();
     _disableTimer = _disableTime;
     _surt         = GameObject.Find("Surt");
     _surtHP       = _surt.GetComponent <Enemy_HP>();
 }
 private void Start()
 {
     _hp              = GetComponent <Enemy_HP>();
     _movement        = GetComponent <Enemy_Movement>();
     _searchForPlayer = GetComponent <Enemy_SearchForPlayer>();
     _wallCheck       = GetComponentInChildren <BasicEnemy_WallCheck>();
     _attack          = GetComponentInChildren <Enemy_Attack>();
     _attackTrigger   = GetComponentInChildren <Enemy_AttackTrigger>();
     _audioSource     = GetComponent <AudioSource>();
     _audioSource2    = _attack.GetComponent <AudioSource>();
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     _movement          = GetComponentInParent <Surt_Movement>();
     _trigger           = GetComponentInChildren <Surt_AttackTrigger>();
     _surtAC            = GetComponentInParent <Surt_AnimationController>();
     _hp                = GetComponentInParent <Enemy_HP>();
     _specialPoint      = GameObject.Find("SurtSpecialPoint");
     _transform         = _movement.GetComponent <Transform>();
     _cooldownTimer     = _attackCooldown;
     _ps                = GetComponentsInChildren <ParticleSystem>();
     _source            = GetComponent <AudioSource>();
     _camShake          = FindObjectOfType <CameraShake>();
     _fireSpawns        = _fireSpawnObj.GetComponentsInChildren <Transform>();
     _projectiles       = new List <GameObject>();
     _rainIntervalTimer = _rainInterval;
     SetupProjectiles();
 }