Transfrom.position as a simple player controller:

The goal was to move left when left arrow button is pushed (Which is working).
But when i repeat it with some changes for it to go Right, it seems if i go left (Example 5 times) and push the right arrow button (To go right) it locks onto -1 (Keep pushing right -2,-3,-4 and so on).

How would i make it go backwards to what left is on?
Meaning: If i go left 1,2,3,4,5 going up 1, i want the right arrow button going the other way 5,4,3,2,1,-1,-2 and so on.

The script is the left side, updated script is the same just “sLeft” is “sRight” and so on.

float sLeft = 0;
    float amountToMoveEachTimeLeft = 1;

void Update () 
	if (Input.GetKeyDown (KeyCode.LeftArrow)) 
		transform.position = new Vector3 (sLeft+=amountToMoveEachTimeLeft, this.transform.position.y, this.transform.position.z);

Just use transform.Translate. Use Vector3.left for left and right for right. Multiply it by the distance you want to go.