Esempio n. 1
0
        private void InitializeCameraController()
        {
            CameraControllerInstance.Targets = PlayerList;

            CameraControllerInstance.Map = Map;

            CameraControllerInstance.SetStartPositionAndZoom();
        }
Esempio n. 2
0
        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);
        }