Exemplo n.º 1
0
 protected virtual void Fire()
 {
     projectiles.FireSpecificBullet(AbsolutePosition, new Vector2((float)Math.Cos(Angle), (float)Math.Sin(Angle)), bullet);
     if (Team != EntityConstants.GetStatsFromID(EntityConstants.TEAM, IDs.DEFAULT_ENEMY))
     {
         Traits.SHOTSFIRED.Counter++;
     }
     SoundHandler.PlaySoundEffect((int)id);
     EditBullet();
     bullet = (Projectile)projectiles.GetEntity((int)bulletID);
 }