toggleing true / false

For some strange reason i can't use the true and false statement in my Javascript.

True and false won't turn color as if it was a code function. As solution i use a 0 and 1 but wan't the true and false function back.

Is there a solution to this problem? I can't find one on the forum here.

Don't get errors.

this is the script

//moving around
var speed = 3.0;
var rotateSpeed = 3.0;

// shooting
var bullitPrefab: Transform;

//dying
private var dead = 0;

//getting hit
var tumbleSpeed = 800;
var decreaseTime = 0.01;
var decayTime = 0.01;
static var gotHit = 0;
private var backup = [tumbleSpeed, decreaseTime, decayTime];

function OnControllerColliderHit (hit : ControllerColliderHit)
{
    if(hit.gameObject.tag == "fallout")
    {       
        dead = 1; 
        //substract life here
        HealthControl.LIVES -= 1;
    }

    if (hit.gameObject.tag == "enemyProjectile")
    {
        gotHit = 1;
    }
}

function Update () 
{
    var controller : CharacterController = GetComponent (CharacterController);

    //Rotate around Y axis
    transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);

    //Move forward & backward
    var forward = transform.TransformDirection (Vector3.forward);
    var curSpeed = speed * Input.GetAxis ("Vertical");
    controller.SimpleMove (forward * curSpeed);

    if(Input.GetButtonDown("Jump"))
    {
        var bullit = Instantiate(bullitPrefab, 
                                        GameObject.Find("spawnPoint").transform.position,  
                                        Quaternion.identity);

        bullit.rigidbody.AddForce(transform.forward * 2000);
    }
}

function LateUpdate()
{
    if (dead == 1)
    {
        transform.position = Vector3(0,4,0);
        gameObject.Find("Main Camera").transform.position = Vector3(0,4,-10);
        dead = 0;
    }

    if (gotHit == 1)
    {
        if (tumbleSpeed < 1)
        {
            // we're not hit anymore..... reset & get back to the game
            tumbleSpeed = backup[0];
            decreaseTime = backup[1];
            decayTime = backup[2];
            gotHit = 0;
        }
        else 
        {
            // we're hit!!!!   Spin our character around
            transform.Rotate(0, tumbleSpeed * Time.deltaTime,0, Space.World);
            tumbleSpeed = tumbleSpeed - decreaseTime;
            decreaseTime += decayTime;
        }
    }
}

@script RequireComponent(CharacterController)

the var Dead and GotHit ment to be true false statements. But when it's a true or false statement it does not work ad all.

In this script i fixed it whit the 0 and 1.

I had a similar problem working in a different dev platform at one point, my first reaction to a problem like this is to simply cold boot, clear the cache and see if that fixes it.

It could be as simple as that, or it could be a problem with your .Net installation.

Cheers,

==