Exemple #1
0
 /// When we disable the gun ship called the animation
 /// and disable the basic functions
 public void DisableWeapon()
 {
     CanAim      = false;
     isReloading = false;
     CanFire     = false;
     if (Animat)
     {
         Animat.HideWeapon();
     }
     if (GManager != null)
     {
         GManager.heatReloadAnim(0);
     }
     StopAllCoroutines();
 }
Exemple #2
0
 /// <summary>
 /// When we disable the gun ship called the animation
 /// and disable the basic functions
 /// </summary>
 public void DisableWeapon(bool isFastKill = false)
 {
     CanAim = false;
     if (isReloading)
     {
         inReloadMode = true; isReloading = false;
     }
     CanFire = false;
     if (Animat)
     {
         Animat.HideWeapon();
     }
     if (GManager != null)
     {
         GManager.heatReloadAnim(0);
     }
     if (!isFastKill)
     {
         StopAllCoroutines();
     }
 }