private void ChangeWeapon()
 {
     //Assaultrifle = 0
     //Shotgun = 1
     //Rocket Launcher = 2
     if (DisableAssaultRifle && DisableRocketLauncher && DisableShotgun)
     {
         return;
     }
     if (persistentScript.WeaponID == 2)
     {
         if (DisableAssaultRifle)
         {
             persistentScript.WeaponID = 0;
             ChangeWeapon();
             return;
         }
         WeaponChanger.changeWeapon("assaultrifle", gameObject);
         persistentScript.WeaponID = 0;
         return;
     }
     else if (persistentScript.WeaponID == 0)
     {
         if (DisableShotgun)
         {
             persistentScript.WeaponID++;
             ChangeWeapon();
             return;
         }
         WeaponChanger.changeWeapon("shotgun", gameObject);
         persistentScript.WeaponID = 1;
     }
     else if (persistentScript.WeaponID == 1)
     {
         if (DisableRocketLauncher)
         {
             persistentScript.WeaponID++;
             ChangeWeapon();
             return;
         }
         WeaponChanger.changeWeapon("rocketlauncher", gameObject);
         persistentScript.WeaponID = 2;
         return;
     }
 }
 private void ChangeWeapon(string weapon)
 {
     WeaponChanger.changeWeapon(weapon, gameObject);
     persistentScript.currentWeapon = weapon;
 }