public void Sort()
{
for (int i = 0; i < particles.Count; i++)
{
if (i > 0)
{
if (MyMath.Distance(Global.Camera.Pos - particles[i].Pos) > MyMath.Distance(Global.Camera.Pos - particles[i - 1].Pos))
{
var temp = particles[i - 1];
particles[i - 1] = particles[i];
particles[i] = temp;
i -= 2;
}
}
}
}
public void Draw(GraphicsDevice GraphicsDevice, GraphicsDeviceManager graphics, SpriteBatch spriteBatch, RenderTarget2D defaultRenderTarget, float width, float height)