private void ShootMain(MouseInput leftButton) { if (leftButton.down) { _charAnim.EnableAim(weaponGetSpeed, delegate { isShootMain = true; }); } if (leftButton.up) { _charAnim.DisableAim(weaponGetSpeed); isShootMain = false; } if (leftButton.press && (isShootMain || isShootExtra)) { _weaponShooter.Shoot(); if (_character.isPlayer) { UIController.instance.UpdateAmmoUI(_weaponShooter.CurrentAmmoInStore, _weaponShooter.CurrentAmmoAmmount); } if (_weaponShooter.IsStoreEmpty && _weaponShooter.CurrentAmmoAmmount > 0) { UIController.instance.ShowAmmoHint(); } } }