Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void _SelectPrimaryWeapon(int n) {
- Component _PrimaryWeaponLauncher1 = null; ######
- Component _PrimaryWeaponLauncher2 = null; ######
- if(n == 1) {
- _DeleteWeaponLauncher(_PrimaryWeaponLauncher1);
- _DeleteWeaponLauncher(_PrimaryWeaponLauncher2);
- _PrimaryWeaponLauncher1 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[0], _LeftChainGun);
- _PrimaryWeaponLauncher2 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[0], _RightChainGun);
- }
- if(n == 2) {
- _DeleteWeaponLauncher(_PrimaryWeaponLauncher1);
- _DeleteWeaponLauncher(_PrimaryWeaponLauncher2);
- _PrimaryWeaponLauncher1 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[1], _LeftMainGun);
- _PrimaryWeaponLauncher2 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[1], _RightMainGun);
- }
- if(n == 3) {
- _DeleteWeaponLauncher(_PrimaryWeaponLauncher1);
- _DeleteWeaponLauncher(_PrimaryWeaponLauncher2);
- _PrimaryWeaponLauncher1 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[2], _LeftMainGun);
- _PrimaryWeaponLauncher2 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[2], _RightMainGun);
- }
- _PrimaryWeaponLauncher1.GetComponent<MonoBehavior>().enabled = false; ######
- _PrimaryWeaponLauncher2.GetComponent<MonoBehavior>().enabled = false; ######
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement