public void SetPrimaryGun(int index, PrimaryGun primaryGun) { if (index == 1) { _bodyInventory.SetPrimaryGun(1, primaryGun); return; } _bodyInventory.SetPrimaryGun(2, primaryGun); }
public void SetPrimaryGun(int slot, PrimaryGun primaryGun) { if (slot == 1) { _primaryGunSlot1 = primaryGun; } else { _primaryGunSlot2 = primaryGun; } }
private Bag _bagSlot; // 背包槽 public void Clear() { _primaryGunSlot1 = null; _primaryGunSlot2 = null; _subGunSlot = null; _throwableWeaponSlot = null; _closeWeaponSlot = null; _helmetSlot = null; _armorSlot = null; _bagSlot = null; }