GUIText Adjusting When You Switch Weapons

So, I've been doing pretty good on my top down shooter. I have two types of guns, a machine gun and a rifle. Now, it has been good so far but when I switch weapons, the GUIText that displays how much ammo I have doesn't adjust to the gun. What I want is when I switch to a different gun, the GUIText will display the new gun's ammo.

Here's the code for the GUI Text. It's simple but works.

var Gun : GunScript;

function Update () {
    guiText.text = Gun.ammoCount + "/" + Gun.magazineCount;
}

Here's the code I use to switch weapons. It's the PlayerWeapons.js script from the FPS Tutorial.

function Start () {
    // Select the first weapon
    SelectWeapon(0);
}

function Update () {
    // Did the user press fire?
    if (Input.GetButton ("Fire1"))
        BroadcastMessage("Fire");

    if (Input.GetKeyDown("1")) {
        SelectWeapon(0);
    }   
    else if (Input.GetKeyDown("2")) {
        SelectWeapon(1);
    }   
}

function SelectWeapon (index : int) {
    for (var i=0;i<transform.childCount;i++)    {
        // Activate the selected weapon
        if (i == index) {
            transform.GetChild(i).gameObject.SetActiveRecursively(true);
        }
        // Deactivate all other weapons
        else {
            transform.GetChild(i).gameObject.SetActiveRecursively(false);
        }
    }
}

And this is the layout for my weapons. The Rifle and Machine Gun are the graphics and the bulletspawn is where the bullets will come out of.

alt text

The SelectWeapon function should update the 'Gun' variable for the Gui Text.