My Code Freezes/Crashes Unity [Closed]

Hi all, hopefully someone has some ideas that can help me on this one. Every is fine when I disable this following script but when I activate it unity freezes.
This script is used to set variables in a persistant object that is used to keep track of everything for my player. This is designed to be a universal script that i can tick what I would like for my player to have.

Any help or insights you might have for me would be helpful.

#pragma strict

var toggleM9:boolean = false;
var whatToSetM9 : boolean = false;//0

var toggleDesertEagle:boolean = false;
var whatToSetDesertEagle : boolean = false;//1

var toggleShotgun:boolean = false;
var whatToSetShotgun : boolean = false;//2

var toggleUMP:boolean = false;
var whatToSetUMP45 : boolean = false;//3

var toggleScar:boolean = false;
var whatToSetScar : boolean = false;//4

var toggleM4A1:boolean = false;
var whatToSetM4A1 : boolean = false;//5

var toggleM21:boolean = false;
var whatToSetM21 : boolean = false;//6

var toggleL9:boolean = false;
var whatToSetL9 : boolean = false;//7

var toggleBarrett:boolean = false;
var whatToSetBarrett : boolean = false;//8

var toggleSetWeapon:boolean = false;
var setsetWeapon : int = 0;

var toggleHealth:boolean = false;
var sethealth : float = 100;

var toggleMaxHealth:boolean = false;
var setmaxHealth : float = 100;

var toggleXP:boolean = false;
var givexp : int = 0;

var toggleCrystals:boolean = false;
var givecrystals : int = 0;

var toggleKeys:boolean = false;
var givekeys : int = 0;

var toggleStones:boolean = false;
var givestones : int = 0;

var toggleGold:boolean = false;
var givegold : int = 0;//unsaved

var setNetworkNumber:boolean = false;
var netNumToSet:int = 0;

function Start () {
	if(toggleM9)
		GameManager.M9 = whatToSetM9;
	if(toggleDesertEagle)
		GameManager.DesertEagle = whatToSetDesertEagle;
	if(toggleShotgun)
		GameManager.Shotgun = whatToSetShotgun;
	if(toggleUMP)
		GameManager.UMP45 = whatToSetUMP45;
	if(toggleScar)
		GameManager.Scar = whatToSetScar;
	if(toggleM4A1)
		GameManager.M4A1 = whatToSetM4A1;
	if(toggleM21)
		GameManager.M21 = whatToSetM21;
	if(toggleL9)
		GameManager.L9 = whatToSetL9;
	if(toggleBarrett)
		GameManager.Barrett = whatToSetBarrett;
	if(toggleSetWeapon)
		GameManager.setWeapon = setsetWeapon;
	if(toggleHealth)
		GameManager.health = sethealth;
	if(toggleMaxHealth)
		GameManager.maxHealth = setmaxHealth;
	if(toggleXP)
		GameManager.xp += givexp;
	if(toggleCrystals)
		GameManager.crystals = givecrystals;
	if(toggleKeys)
		GameManager.keys = givekeys;
	if(toggleStones)
		GameManager.stones = givestones;
	if(toggleGold)
		GameManager.gold = givegold;
	if(setNetworkNumber)
		GameManager.networkNumber = netNumToSet;
}

Pretty straight forward. These are setting these following items in my GameManager Object which is my persistant player information tracking object.

//------------------------------------------------------------------------
//-------------------For Networking/Game Setup----------------------------
public static var leveltoload : String = "";
public static var gametype : String ="";
public static var currentlocation : String ="";
public static var save : boolean = false;
public static var resetgame : boolean = false;
public static var disconnected : boolean = false;
public static var locationToSpawn:String = "";
public static var networkNumber:int = 0;
//-----------------------------------------------------------------------
    //-------------------For Weapons-----------------------------------------
    public static var M9 : boolean = true;//0
    public static var DesertEagle : boolean = false;//1
    public static var Shotgun : boolean = false;//2
    public static var UMP45 : boolean = false;//3
    public static var Scar : boolean = false;//4
    public static var M4A1 : boolean = false;//5
    public static var M21 : boolean = false;//6
    public static var L9 : boolean = false;//7
    public static var Barrett : boolean = false;//8
    public static var setWeapon : int = 0;
    
    public static var hasM9 : int = 0;
    public static var hasDesertEagle : int = 0;
    public static var hasShotgun : int = 0;
    public static var hasUMP45 : int = 0;
    public static var hasScar : int = 0;
    public static var hasM4A1 : int = 0;
    public static var hasM21 : int = 0;
    public static var hasL9 : int = 0;
    public static var hasBarrett : int = 0;
    //-------------------------------------------------------------------
    //-------------------Character Stats & Info--------------------------
    public static var health : float = 100;
    public static var maxHealth : float = 100;
    public static var xp : int = 0;
    public static var dead : boolean = false;
    public static var crystals : int = 0;
    public static var keys : int = 0;
    public static var stones : int = 0;
    public static var playerName :String ="UnNamed";
    public static var gold : int = 0;//unsaved

Thanks guys! It was causing an infinite loop. So I was able to find it. Thanks for all of your suggestions.