API_Module_SDKConfiguration.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. 
  2. using SC.XR.Unity.Module_Device;
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. namespace SC.XR.Unity {
  8. public class API_Module_SDKConfiguration {
  9. public static bool HasKey (string section, string key) {
  10. return Module_SDKConfiguration.getInstance.HasKey(section, key);
  11. }
  12. public static int GetInt(string section, string key, int defaultVal) {
  13. return Module_SDKConfiguration.getInstance.GetInt(section, key, defaultVal);
  14. }
  15. public static bool GetBool(string section, string key, int defaultVal) {
  16. return Module_SDKConfiguration.getInstance.GetBool(section, key, defaultVal);
  17. }
  18. public static string GetString(string section, string key, string defaultVal) {
  19. return Module_SDKConfiguration.getInstance.GetString(section, key, defaultVal);
  20. }
  21. public static float GetFloat(string section, string key, float defaultVal) {
  22. return Module_SDKConfiguration.getInstance.GetFloat(section, key, defaultVal);
  23. }
  24. }
  25. }