Is there any way I could write the code below in just one variable and have the same result in Debug.Log
var selectorX:int = (Input.mousePosition.x/Screen.width) * 5 + 1;
var selectorXScaled = selectorX * 100;
Debug.Log(selectorXScaled);
What the code basicly does is that it gives me a number 1>5 depending on where on the screen u clicked horizontaly.