- Home /
problem with Yield WaitForSeconds
hello .. how i can delay 0.3 sceconds with out using (Yield WaitForSecond)
My code :
function OnCollisionEnter(hit:Collision){
if(hit.gameObject.tag=="Black"){
Score.Myscore+=1;
yield WaitForSeconds(0.3f);
Destroy (gameObject);
}
}
Comment