void OnStructureDestroyed(StructureDestroyedEventData e) { var s = GetStructure(e.Team, e.Type); if (s != null) { PlaySound(Sounds.Explosion, new Vec2(s.Structure.Rectangle.X + s.Structure.Rectangle.Width / 2f, s.Structure.Rectangle.Y + s.Structure.Rectangle.Height / 2f)); } }
void OnStructureDestroyed(StructureDestroyedEventData e) { var s = GetStructure(e.Team, e.Type); if (s != null) PlaySound(Sounds.Explosion, new Vec2(s.Structure.Rectangle.X + s.Structure.Rectangle.Width / 2f, s.Structure.Rectangle.Y + s.Structure.Rectangle.Height / 2f)); }