I have the following and it's not working. I would like to include more than one tag in this if statement. I just started learning c# and would really appreciate some help.
if (hit.collider.gameObject.tag == "test" && "craft")
I have the following and it's not working. I would like to include more than one tag in this if statement. I just started learning c# and would really appreciate some help.
if (hit.collider.gameObject.tag == "test" && "craft")
No it wont work that way use if (hit.collider.gameObject.tag == "test" && hit.collider.gameObject.tag =="craft")
If (var1 == "string1" && var2 == "string2")