protected override void SwitchWeapon()
 {
     if (selectedWeapon == GunnerWeapon.Minigun)
     {
         selectedWeapon = GunnerWeapon.RocketLauncher;
         abilities[2].ChangeType((int)GunnerWeapon.RocketLauncher);
     }
     else
     {
         selectedWeapon = GunnerWeapon.Minigun;
         abilities[2].ChangeType((int)GunnerWeapon.Minigun);
     }
 }
예제 #2
0
 public override void ChangeType(int weapon)
 {
     if (weapon == (int)GunnerWeapon.Minigun)
     {
         selectedWeapon = GunnerWeapon.Minigun;
         speed          = minigunSpeed;
         cooldown       = minigunCooldown * cooldownReduction;
         range          = minigunRange;
     }
     else
     {
         selectedWeapon = GunnerWeapon.RocketLauncher;
         speed          = rocketSpeed;
         cooldown       = rocketCooldown * cooldownReduction;
         range          = rocketRange;
     }
 }
 private GunnerAbilityManager()
 {
     selectedWeapon = GunnerWeapon.Minigun;
 }