Hi i need to delay a piece of my code without coroutines it is inside a function that is only called when you press mouse 1 and that mouse 1 call is also has a timer with it that makes it so you can only press it again after a set time once its been pressed.
this is pseudo code
update
{
if firetime >= 0
{
if press mouse 0
call fire funtion
reset firetime
}
if (fireTime > 0){
fireTime -= Time.deltaTime;
}
}
void fire
{
play noise/animation
//here i want to delay this by a time lets say 1 second
raycast
}