I’m trying to use a bool to check if the player is doing a certain action, if he isn’t then he’ll be able to do it, but I can’t figure out how to disable the bool after he’s done so that it can be repeated…
Here’s what I have
if (inTrigger)
{
if (Input.GetKeyDown(KeyCode.E))
{
if (doingAction== false)
{
doingAction = true;
animator.SetBool("doAction", true);
source.PlayOneShot(sound);
}
}
}