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; } } }
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; } } }