예제 #1
0
        private void UpdateConfiguration()
        {
            var config = ConfigSerializer.ReadJsonFile(CONFIG_PATH);

            videoPath = config.Value <string>("videoPath");
            cameraId  = config.Value <int>("cameraId");
        }
예제 #2
0
        private void UpdateConfiguration()
        {
            var config = ConfigSerializer.ReadJsonFile(WINDOW_CONFIG_PATH);

            playerCameraAngleInDegree = config.Value <float>("playerCameraAngleInDegree");
            playerCameraXPos          = config.Value <float>("playerCameraXPos");
            playerCameraYPos          = config.Value <float>("playerCameraYPos");
            Width  = config.Value <float>("Width");
            Height = config.Value <float>("Height");
        }