Advertisement
D8ms

Untitled

Nov 7th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.20 KB | None | 0 0
  1. public void _SelectPrimaryWeapon(int n) {
  2.   Component _PrimaryWeaponLauncher1 = null; ######
  3.   Component _PrimaryWeaponLauncher2 = null; ######
  4.  
  5.   if(n == 1) {
  6.    _DeleteWeaponLauncher(_PrimaryWeaponLauncher1);
  7.    _DeleteWeaponLauncher(_PrimaryWeaponLauncher2);
  8.    _PrimaryWeaponLauncher1 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[0], _LeftChainGun);
  9.    _PrimaryWeaponLauncher2 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[0], _RightChainGun);
  10.   }
  11.   if(n == 2) {
  12.    _DeleteWeaponLauncher(_PrimaryWeaponLauncher1);
  13.    _DeleteWeaponLauncher(_PrimaryWeaponLauncher2);
  14.    _PrimaryWeaponLauncher1 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[1], _LeftMainGun);
  15.    _PrimaryWeaponLauncher2 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[1], _RightMainGun);
  16.   }
  17.     if(n == 3) {
  18.    _DeleteWeaponLauncher(_PrimaryWeaponLauncher1);
  19.    _DeleteWeaponLauncher(_PrimaryWeaponLauncher2);
  20.    _PrimaryWeaponLauncher1 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[2], _LeftMainGun);
  21.    _PrimaryWeaponLauncher2 = _SelectPrimaryWeapon(_PrimaryWeaponSlots[2], _RightMainGun);
  22.   }
  23.  _PrimaryWeaponLauncher1.GetComponent<MonoBehavior>().enabled = false; ######
  24.  _PrimaryWeaponLauncher2.GetComponent<MonoBehavior>().enabled = false; ######
  25.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement