How would I say:
function Update () { if(transform.position.x "is in between number x and number y") { ( "do stuff" ) } }
How would I say:
function Update () { if(transform.position.x "is in between number x and number y") { ( "do stuff" ) } }
You need to do :
if( transform.position.x >= A && transform.position.x <= B ) ...
What you need to see here :
not sure if there is a better way, but you could just have nested if statements
if (x<100)
{
if (x>50)
{
print ("we're now in between 50 and 100... woohoo!!");
}
}