public void PlaceWalls() { RemoveWalls(); foreach (Point3D loc in m_WallCoordinates) { BMwall wall = new BMwall(); m_Walls.Add(wall); wall.MoveToWorld(loc, m_RegionControl.MyRegion.Map); } }
public void DestroyWall(BMwall wall) { if (wall != null) { Effects.SendLocationParticles((IEntity)wall, 0x36BD, 20, 10, 5044); // explosion Effects.PlaySound(wall.Location, wall.Map, 0x307); // explosion m_Walls.Remove(wall); wall.Delete(); if (m_Walls.Count == 0) Timer.DelayCall(TimeSpan.FromSeconds(3), new TimerCallback(SpawnGimmickCallback)); } }