// Use this for initialization void Start() { _enemyController = GetComponent <Fenrir_Controller>(); _attack = GetComponentInChildren <Fenrir_Attack>(); _animator = GetComponent <Animator>(); _transform = GetComponent <Transform>(); _audioSource = GetComponent <AudioSource>(); _originalHP = hitPoints; if (thisIsABoss) { _BossHP = FindObjectOfType <BossHPBarController>(); } }
// Use this for initialization void Start() { if (!_hasCustomScripts) { _enemyController = GetComponent <Enemy_Controller>(); } _animator = GetComponent <Animator>(); _transform = GetComponent <Transform>(); _audioSource = GetComponent <AudioSource>(); _originalHP = hitPoints; if (thisIsABoss) { _BossHP = FindObjectOfType <BossHPBarController>(); } }