コード例 #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");
        }