So i thought this would be simple enough, but turns out it clashes with my camera code,
i was thinking that if(Input.GetKeyDown(“m”)) was over case 0 of the camera change, and if(Input.GetKeyUp(“m”)) was over case 1 then in ‘theory’ that would invoke the need to keep hold of the button in order to view the ‘map’… but apparently not as it can then no longer identify case, or 1, and asks for a semi-colon and all sorts?
is there any way around this:
function Update ()
{
if(Input.GetKeyDown("m"))
{
//Debug.Log('pressing key');
currCam = (currCam + 1) % 2;
switch(currCam)
{
case 0 :
camera1.enabled=true;
aerialCamera.enabled=false;
break;
case 1 :
Debug.Log('pressing another key');
camera1.enabled=false;
aerialCamera.enabled=true;
break;
}
}
}