PathfindingTest.Map.MiniMap.ActionOnMiniMap C# (CSharp) 메소드

ActionOnMiniMap() 개인적인 메소드

Perform an action on the given point
private ActionOnMiniMap ( Point miniMapLocation ) : void
miniMapLocation Point The point to perform the action on
리턴 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);
        }