private void InitializeCameraController() { CameraControllerInstance.Targets = PlayerList; CameraControllerInstance.Map = Map; CameraControllerInstance.SetStartPositionAndZoom(); }
private void InitializeCamera() { if (PlayerList.Count > 0) { CameraControllerInstance.ObjectFollowing = PlayerList[0]; } else { throw new Exception("The map must contain a tile or object with EntityToCreate set to Player"); } CameraControllerInstance.SetCameraBoundsFromTiledMap(currentLevel); }