Alternative single line solution for code in function

void Update()
    {
        transform.position += new Vector3(rawInput.x, rawInput.y,0) * Time.deltaTime * moveSpeed;
    }

Privacy & Terms