I want my boolean value to switch to true if currently false, or switch to false if currently true using only one Keycode. Here is my C# code:
`
bool cameraCollisionEnabled = true;
void Update ()
{
if (Input.GetKey (KeyCode.C))
{
cameraCollisionEnabled =! cameraCollisionEnabled;
Debug.Log (“Camera Collision Status Updated”);
}
}`