示例#1
0
 /// <summary> Deselect this weapon </summary>
 public void DeselectWeapon()
 {
     if (ReloadCoroutineRef != null)
     {
         SoundController.StopSound(Weapon.ReloadSound);
         CoroutineHelper.BreakCoroutine(ReloadCoroutineRef);
     }
     if (ShotCoroutineRef != null)
     {
         CoroutineHelper.BreakCoroutine(ShotCoroutineRef);
     }
     IsReloading        = false;
     IsShooting         = false;
     ReloadCoroutineRef = null;
     ShotCoroutineRef   = null;
 }