public IEnumerator KillCor(Liver2D victim, float time) { LiverInteract = victim; victim.EnemyInteract = this; mover.StopMove(); victim.mover.StopMove(); isBusy = true; victim.isBusy = true; // направление mover.RotateTo(victim.transform.position); yield return(new WaitForSeconds(time)); isBusy = false; if (victim != null) { victim.isBusy = false; victim.TakeDamage(Damage); } mover.RestoreMove(); }