API_Module_BatteryStatus.cs 782 B

123456789101112131415161718192021222324252627
  1. 
  2. using SC.XR.Unity;
  3. using SC.XR.Unity.Module_Device;
  4. using System;
  5. using System.Collections;
  6. using System.Collections.Generic;
  7. using UnityEngine;
  8. public class API_Module_BatteryStatus {
  9. public static int BatteryLevel {
  10. get {
  11. return Module_BatteryStatus.getInstance.BatteryLevel;
  12. }
  13. }
  14. public static BATTERYSTATUS IsCharging {
  15. get {
  16. return Module_BatteryStatus.getInstance.IsCharging;
  17. }
  18. }
  19. public static void SetCallBack(Action<int, BATTERYHEALTH, int, BATTERYPLUGGED, BATTERYSTATUS, string, int> batteryStatusCallBack, Action batteryLowCallBack, Action batteryOKAYCallBack) {
  20. Module_BatteryStatus.getInstance.SetCallBack(batteryStatusCallBack, batteryLowCallBack, batteryOKAYCallBack);
  21. }
  22. }