12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace SC.XR.Unity
- {
- public class API_SDKGlobalConfiguration
- {
- public static bool HasKey(string section, string key)
- {
- return Module_SDKGlobalConfiguration.getInstance.HasKey(section, key);
- }
- public static int GetInt(string section, string key, int defaultVal)
- {
- return Module_SDKGlobalConfiguration.getInstance.GetInt(section, key, defaultVal);
- }
- public static bool GetBool(string section, string key, int defaultVal)
- {
- return Module_SDKGlobalConfiguration.getInstance.GetBool(section, key, defaultVal);
- }
- public static string GetString(string section, string key, string defaultVal)
- {
- return Module_SDKGlobalConfiguration.getInstance.GetString(section, key, defaultVal);
- }
- public static float GetFloat(string section, string key, float defaultVal)
- {
- return Module_SDKGlobalConfiguration.getInstance.GetFloat(section, key, defaultVal);
- }
- public static void SetConfiguration(string sec, string key, string val)
- {
- Module_SDKGlobalConfiguration.getInstance.SetString(sec, key, val);
- }
- public static void SaveAllConfigToFile() {
- Module_SDKGlobalConfiguration.getInstance.SaveAllConfigToFile();
- }
- }
- }
|