Hello! So I tested this code wich is supposed to disable/enable collisions
if (Input.GetKey(KeyCode.C))
{
collisionDisabled = !collisionDisabled;
}
but the problem is that it is in the update section so it updates every second and it is impossible to press the key c just enough to enable/disable it. Is there any fix I could try like addid a wait command or something?