Untitled
Anonymous
plain_text
12/24/2021 3:27 AM
588 B
27
Indexable
bool HeldCheck;
void OnceOnHeld()
{
bool KeyHeld = Input.GetKey("Whatever");
if (Input.GetKeyDown("Whatever"))
{
//On Down Event
}
else if (KeyHeld && !HeldCheck)
{
HeldCheck = true;
//Start Held Process
}
else if (!KeyHeld && HeldCheck)
{
HeldCheck = false;
//End Held Process
}
}Editor is loading...