is there any easy way to do something like
void fire()
{
//fire code
wait for reload time
reload();
}
void reload()
{
//reload code
}
i could probably hack it using update but it seems messy.
i’d like to just do
yield waitforseconds(reloadtime)
but it seems you can only use yield(i think)
if you enter a function from an update (i think)
not sure.
basically i tried doing a yield WaitForSeconds inside a function and
yield shows up
but waitforseconds doesn’t.
I can just type break or return.