public Bullet Fire() { if (ReloadSW.Elapsed.TotalSeconds > (1 / FireRate)) { ReloadSW = Stopwatch.StartNew(); ReloadSW.Start(); if (IsGunWorking()) { var bullet = new Bullet(GunCoordinates) { Speed = BulletSpeed, Skin = BulletSkin, Damage = BulletDamage }; Bullets.Add(bullet); return(bullet); } } return(null); }
public ArmedEntity() { ReloadSW.Start(); }