public void SetFollowWithBoundaryBehavior(Rectangle boundary, IFollowingTarget target) { _cameraBehavior = new FollowBoundaryCameraBehavior(Game, boundary, target); }
public FollowBoundaryCameraBehavior(Game2D game, Rectangle boundary, IFollowingTarget target) : base(game) { Boundary = boundary; Target = target; }