Is it possible to write a C# function that takes in a bool and a float and resets that bool after a period of time (determined by the float)?
Specifically i'm asking for something like this:
void reset(bool a, float b){
... After a certain time period determined by b
a = true;
}
So then to reset any bool i can just call reset, passing in a bool and a float which determines the time it takes until the bool is reset
This needs to work for any bool, not one specific bool. Thanks.