isActive != isActive problem


Script :
#pragma strict
//varibles
var wood : int;
var stone : int;
var iron : int;
var gunpowder : int;
var bread : int;

//GameObject's
var WoodSword : GameObject;
var StoneSword : GameObject;
function Start () {

//Bool's
var isActive : boolean = false;
}

function Update () {


}
function OnGUI()
{
if(Input.GetKeyUp("c")){
	isActive != isActive;
}
if(isActive == true){
	if(GUI.Button(Rect(0,0,100,50), "Wood Sword")){
		if(wood >= 3){
			WoodSword.SetActive( true );
			wood -= 3;
		}
	}
	if(GUI.Button(Rect(9,9,100,50), "Stone Sword")){
		if(wood >= 1){
			if(stone >= 2){
				StoneSword.SetActive ( true );
				wood -= 1;
				stone -= 2;
			}
		}
	}
}
else{

}
}

I think problem is here in Input.GetKeyUp
You have to write isActive = !isActive

if(Input.GetKeyUp("C")){
    isActive = !isActive;
}

And also should declare variable global

You isActive variable is declared in the Start so it does not live outside the method, move it out and it will be global to the class.