//Функция срабатывает каждый фрейм
 private void Update()
 {
     if (is_running)
     {
         float step = runningSpeed * Time.deltaTime;
         transform.position = Vector3.MoveTowards(transform.position, position, step);
         if (Vector3.Distance(transform.position, position) < 0.01f)
         {
             is_running = false;
             if (is_running_out)
             {
                 deathCount++;
                 attackMenu.ActivateEnemies(spawnPointIndex);
                 enemyUI.SetToDefault();
                 currentHealth = defaultHealth;
                 Death();
             }
         }
     }
     animator.SetBool("run", is_running);
 }