Example #1
0
 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
 }
Example #2
0
 public void ProjectileLaunch()
 {
     ProjectileFired?.Invoke();
 }