if(hit.transform.name == “bplay2”
{
// how do i make it so it ill execute next line 2 seconds after i click it
target = targetdirt;
}
SOLVED
if(hit.transform.name == "bplay2")
{
SwitchToPlayMode ();
//yield WaitForSeconds(0);
// target = targetplaymode;
}
}
}
}
function SwitchToPlayMode ()
{
yield WaitForSeconds(2);
target = targetplaymode;
}