Expecting ( found 'IGMenu'

so I made this menu and when I press a Key I want it to pop up but theres an error and I don’t know how to fix it

alt text

And here’s my script

#pragma strict
var IGMenu : GameObject;
function Start () {


function Update () {


function ShowMenu () {
if (Input.GetKeyDown("Escape"))
if IGMenu.SetActive(true);

Change line 14 to:


It looks like you had a useless if statement there.