hi
this is my script
function OnCollisionEnter(hit:Collision){
if(hit.gameObject.tag==“first”)
{
Debug.Log(“Done”);
}
}
I want to type (Done) when i make collission with game object tagged “first” and game object tagged “second”
I try this :
if(hit.gameObject.tag==“first”&&hit.gameObject.tag==“second”)
{
Debug.Log(“Done”);
}
but No results
please help me guys :*