示例#1
0
 public void removeWeapon(int num)
 {
     this.weapon[num].enabled = false;
     UIManager_Game.SetWeaponEnabled(num, false);
     for (int i = 0; i < MAXSLOT; i++)
     {
         if (this.weaponslot[i] == num)
         {
             this.weaponslot[i] = -1;
             //return;
         }
     }
 }
示例#2
0
 public void addWeapon(int num)
 {
     this.weapon[num].enabled = true;
     UIManager_Game.SetWeaponEnabled(num, true);
     for (int i = 0; i < MAXSLOT; i++)
     {
         if (this.weaponslot[i] == -1)
         {
             this.weaponslot[i] = num;
             //add = true;
             return;
         }
     }
 }