Camera Controller - Make camera move when cursor comes near the edge

Hello I am trying to make a script where I can make my camera move to the direction of the mouse when it comes near the edge of the screen. Just like for example. League of legends.
But I am running into problems!

I get this Error.

error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement

Here is my code :

public float speed = 10.0f;
public int Boundary = 50;
private int width;
private int height;

void Start () {
	width = Screen.width;
	height = Screen.height;
}

void Update () {
	if (Input.mousePosition.x > width - boundary) {
		transform.position -= new Vector3 (Input.GetAxisRaw ("Mouse X") * Time.deltaTime * speed, 
			0.0f, 0.0f);
	}

	if (Input.mousePosition.x < 0 + boundary) {
		transform.position -= new Vector3 (Input.GetAxisRaw ("Mouse X") * Time.deltaTime * speed, 
			0.0f, 0.0f);
	}

	if (Input.mousePosition.y > height - boundary) {
		transform.position -= new Vector3 (0.0f, 0.0f, 
			Input.GetAxisRaw ("Mouse Y") * Time.deltaTime * speed);		
	}

	if (Input.mousePosition.y < 0 + boundary) {
		transform.position -= new Vector3 (0.0f, 0.0f, 
			Input.GetAxisRaw ("Mouse Y") * Time.deltaTime * speed);		
	}
}

You Can Use The Unity Characters Asset And Drag And Drop The FPSControler (StanderedAssets/Characters/First-person/Preferences) :wink:

The thing is, i only want it to go around on the x and y axis. Like “MOBA” games. :frowning: