private void switchWeapon(bool changingUp) { gameManagement.ChangeWeaponScrolling(changingUp); // Deactivate old weapon activeWeapon.gameObject.SetActive(false); activeWeapon = gameManagement.WeaponsInventory[gameManagement.ActiveWeaponID]; // Activate new weapon activeWeapon.gameObject.SetActive(true); activeWeapon.setAmmoText(); }