示例#1
0
        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));
            }
        }
示例#2
0
		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));

		}