I want to use a vector 2 input action to be changed according to a int variable that is picked at random between 1 and 4. I know how to randomise the variable but do not know how to change the input action being used accordingly. I have created a input action called move and I want to assign one of four vector 2 input actions to it based on the randomised variable.
Switch statement is probably your best bet.
int randomInt = Random.Range(1,4);
Vector2 inputVector;
switch(randomInt)
{
case 1:
inputVector= new Vector2(0,0);
break;
case 2:
inputVector= new Vector2(1,0);
break;
case 3:
inputVector= new Vector2(0,1);
break;
case 4:
inputVector= new Vector2(1,1);
break;
default:
inputVector= new Vector2(0,0);
}