void Awake() { myCol = GetComponent <Collider2D>(); movement = GetComponent <EnemyMovement>(); }
// Start is called before the first frame update void Start() { enemyMovement = GetComponent <EnemyMovement>(); InvokeRepeating(nameof(UpdateTarget), enemySettings.changeTargetRate, enemySettings.changeTargetRate); }