Tell me why you do not write to the console that you got. here is the `void Update () {script
if (kill.EnemyIsDead == false) { if (hello.stadia == 1) { transform.LookAt(target); Ray ray = new Ray(transform.position, transform.forward);//создаем луч первый параметр -откуда будет испускаться ,луч 2- куда RaycastHit hit;//сталкнулся ли обьект if (Physics.Raycast(ray, out hit )) { if (hit.collider.name == "personaj") { Debug.Log("попал"); } else if (hit.collider.tag == "Untagged") { } } }}`