public void Update() { MoveUpdate(); if (!IsFiring || !(GlobalTime.Current.Milliseconds - 1 / CadenceShotsPerMilliSec > timeLastShot)) { return; } //ncrunch: no coverage start, content Mock can't use exists which is needed for ParticleSystem new Projectile(DrawArea.Center, Rotation); timeLastShot = GlobalTime.Current.Milliseconds; if (ProjectileFired != null) { ProjectileFired.Invoke(); } //ncrunch: no coverage end }
public void ProjectileLaunch() { ProjectileFired?.Invoke(); }