void Start() { // These rectangles represent the two halfs of the screen //leftR = new Rect(0f, 0f, Screen.width * 0.5f, Screen.height); //rightR = new Rect(Screen.width * 0.5f, 0f, Screen.width * 0.5f, Screen.height); leftR = joystickLeft.GetRect(); rightR = joystickRight.GetRect(); maxMovRange = Screen.width * 0.05f; }