private ActionOnMiniMap ( Point miniMapLocation ) : void | ||
miniMapLocation | Point | The point to perform the action on |
Résultat | void |
private void ActionOnMiniMap(Point miniMapLocation)
{
Point mapLocation = MiniMapToMap(miniMapLocation);
Point centerSize =
new Point(Game1.GetInstance().GetScreenBounds().Width / 2, Game1.GetInstance().GetScreenBounds().Height / 2);
Game1.GetInstance().drawOffset = new Vector2(mapLocation.X - centerSize.X, mapLocation.Y - centerSize.Y);
}