How to pause accelerometer movement

Hello so I figured out how to pause my game when it is disturbed

public static bool isPaused;
public GameObject pauseMenuUI;

void Start ()
{
    isPaused = false;
    Time.timeScale = 1;
}

public void GamePause()
{
    isPaused = !isPaused;

    if (isPaused)
        Time.timeScale = 0;
        pauseMenuUI.SetActive(true);

    if (!isPaused)
        Time.timeScale = 1;
}

void OnApplicationPause()
{
    pauseMenuUI.SetActive(true);
    isPaused = true;
    Time.timeScale = 0;
}

public void Resume ()
{
    pauseMenuUI.SetActive(false);
    Time.timeScale = 1;
    isPause = false;
}

It pauses everything but the acceleration of the player

float accelStartY;

void Start() 
{
    accelStartY = Input.acceleration.y;
}

void Update()
{
    transform.Translate(Input.acceleration.x, Input.acceleration.y - accelStartY, 0);

//PauseScript is script above
    if (PauseScript.isPaused)
    {
        Time.timeScale = 0;
    } 

I need help pausing my player

If you multiply it by Time.deltaTime, it’ll scale as well…

transform.Translate(Input.acceleration.x * Time.deltaTime, Input.acceleration.y * Time.deltaTime, 0);