// Start is called before the first frame update void Awake() { damaged = GetComponent <AudioSource>(); currHP = maxHP; enemyhealthBar.EnemySetMaxHP(maxHP); enemy = GameObject.FindGameObjectWithTag("Enemy").transform; player = GameObject.FindGameObjectWithTag("Player").transform; startPosition = EnemySpawnPoint.position; startRotation = EnemySpawnPoint.rotation; }