コード例 #1
0
 // Get configuration index
 public static int GetConfigurationIndex(WitConfiguration configuration)
 {
     // Search through configs
     return(Array.FindIndex(WitConfigs, (checkConfig) => checkConfig == configuration));
 }
コード例 #2
0
        // Save configuration after determining path
        public static int SaveConfiguration(string serverToken, WitConfiguration configurationAsset)
        {
            string savePath = GetFileSaveDirectory(WitTexts.Texts.ConfigurationFileManagerLabel, WitTexts.Texts.ConfigurationFileNameLabel, "asset");

            return(SaveConfiguration(savePath, serverToken, configurationAsset));
        }
コード例 #3
0
 public static void UpdateData(this WitConfiguration configuration,
                               Action onUpdateComplete = null)
 {
     DoUpdateData(configuration, onUpdateComplete);
 }