Hello guys. I want to make my enemy randomly stop and shoot.
public int chanceStopping;
chanceStopping = Random.Range (0, 300);
if (chanceStopping == 150) {
StopnShoot ();
}
void StopnShoot (){ //Make the enemy stop for 1 second and shoot twice.
}
How can I do this. I need some help.