UserInfo.cs 904 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class UserInfo {
  5. //设备sn号
  6. public static string Serialno = string.Empty;
  7. //影创账号
  8. public static string Account = string.Empty;
  9. //影创应用号
  10. public static string AppID = "mr_studio";
  11. //Token
  12. public static string Token = string.Empty;
  13. //User_Token
  14. public static string User_Token = string.Empty;
  15. //Token
  16. public static string uid = string.Empty;
  17. /// <summary>
  18. /// 判断是否为游客账号
  19. /// </summary>
  20. /// <returns><c>true</c>, if vistor account was ised, <c>false</c> otherwise.</returns>
  21. public static bool isVistorAccount()
  22. {
  23. return Serialno == Account;
  24. }
  25. /// <summary>
  26. /// 判断用户是否登陆
  27. /// </summary>
  28. /// <returns><c>true</c>, if login was ised, <c>false</c> otherwise.</returns>
  29. public static bool isLogin()
  30. {
  31. return Account != string.Empty;
  32. }
  33. }