void LateUpdate() { List <Bullet> enemyBullets = BulletsManager.GetEnemyBullets(this); float vertical = GetVerticalMovement(enemyBullets); float horizontal = GetHorizontalMovement(enemyBullets); if (revert) { horizontal = -horizontal; } Vector2 moving = Vector2.Lerp(oldMoving, new Vector2(horizontal, vertical), Time.deltaTime * accelerationSpeed); oldMoving = moving; Move(moving); }