// Use this for initialization void Start() { _movement = GetComponent <Surt_Movement>(); _attack = GetComponentInChildren <Surt_Attack>(); _hp = GetComponent <Enemy_HP>(); _animator = GetComponent <Animator>(); }
// Use this for initialization void Start() { _transform = GetComponent <Transform>(); _lineCastObject = GameObject.Find("LineCastEndingPoint"); _lineCastEnd = _lineCastObject.GetComponent <Transform>(); _movement = GetComponent <Surt_Movement>(); _source = GetComponent <AudioSource>(); _followTimer = _followTime; }
// 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(); }