public void Draw(Color Color, Camera2D Camera) { Rectangle destination; if (Camera == null) { destination = new Rectangle((int)position.X, (int)position.Y, (int)(texture.Width * zoom), (int)(texture.Height * zoom)); } else { Vector2 relPosition = Vector2.Zero; relPosition = Camera.Relative(position); destination = new Rectangle((int)relPosition.X, (int)relPosition.Y, (int)(texture.Width * zoom), (int)(texture.Height * zoom)); } XNAGame.Instance.SpriteBatch.Draw(texture, destination, new Rectangle(0, 0, texture.Width, texture.Height), Color, rotation, origin, SpriteEffects.None, 0); }