void Update() { CalmDownTimer(); AttackPlayer(); aiControl.SetTarget(desiredPosition); if (health <= 0) { enimies = enimies - 1; //Chaneded Here score = score + 1; //Chaneded Here Death(); } if (debug) { Debug.DrawRay(shootPoint.transform.position, shootPoint.forward * 100); } }