Hey,
I’ve got a Javascreen shake script that I added to the MainCamera. I’d like it to trigger randomly, perhaps every 8 seconds? Can anyone help me?
Thanks In advance!
Hey,
I’ve got a Javascreen shake script that I added to the MainCamera. I’d like it to trigger randomly, perhaps every 8 seconds? Can anyone help me?
Thanks In advance!
Try using :
InvokeRepeating("yourfunction", 2, 0.3);
or
Invoke("yourfunction", 2);
or :
yield WaitForSeconds (5);
//call your function
yourfunction();