In one of my co routines, I pause for a second using yield WaitForSeconds(1), but I’d also like to be able to interrupt that yield (say if the player wants to rush through that section or something).
I guess I need something like this (Imaginary code)
yield WaitForSeconds(1) || while (interrupt == false)yield;
I’m sure there must be something pretty simple that I’m overlooking.
Yes I’d like to have the script continue through after being “interrupted”.
I was thinking of doing something like that but I thought there might have been some easy way I was missing out on.