/// 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(); }
/// <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(); } }