public static SpriteRenderer GetInstance(GraphicsDevice device) { if (instance == null) instance = new SpriteRenderer(device); return instance; }