API_Module_Authentication.cs 785 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SC.XR.Unity.Module_Authentication
  7. {
  8. public class API_Module_Authentication
  9. {
  10. public static void RegistAuthenticationEventCallback(Action<AuthenticationEvent, string> callback)
  11. {
  12. AuthenticationManager.Instance.onAuthenticationEventCallback += callback;
  13. }
  14. public static void UnRegistAuthenticationEventCallback(Action<AuthenticationEvent, string> callback)
  15. {
  16. AuthenticationManager.Instance.onAuthenticationEventCallback -= callback;
  17. }
  18. public static void Authentication()
  19. {
  20. AuthenticationManager.Instance.GetAuthenticationInfo();
  21. }
  22. }
  23. }