예제 #1
0
        static void StoreBuildNumber()
        {
            var jsonService     = new JSONDataService();
            var versionFilePath = BibaEditorConstants.GetResourceFilePath(BibaContentConstants.BIBAVERSION_FILE);
            var version         = jsonService.ReadFromDisk <BibaVersion> (versionFilePath);

            version.BuildNumber = JenkinsBuildNumber.ToString();

            jsonService.WriteToDisk <BibaVersion> (version, versionFilePath);

            AssetDatabase.Refresh();
        }
예제 #2
0
    void Start()
    {
        if (BibaContentConstants.ENVIRONMENT == Environment.Development)
        {
            var jsonService = new JSONDataService();
            var version     = jsonService.ReadFromDisk <BibaVersion> (BibaContentConstants.GetResourceFilePath(BibaContentConstants.BIBAVERSION_FILE));

            GetComponent <Text> ().text = version.Version + "." +
                                          version.BuildNumber + " " +
                                          BibaContentConstants.ENVIRONMENT.ToString().Substring(0, 3);
        }
    }
        static void ReloadSettings()
        {
            var dataService = new JSONDataService();

            settings = dataService.ReadFromDisk <BibaLocalizationSettings>(BibaEditorConstants.GetResourceFilePath(BibaContentConstants.LOCALIZATION_SETTINGS_FILE));
        }