UserInfo.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using LitJson;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class UserInfo {
  6. public static string avatar;
  7. public static Texture textIcon;
  8. public static string defaultavatar;
  9. public static Texture defaulttextIcon;
  10. public static string phone = string.Empty;
  11. public static string UnionId = string.Empty;
  12. public static string PassWord = string.Empty;
  13. //影创账号
  14. public static int activateType;
  15. //影创账号
  16. public static double indate;
  17. //影创账号
  18. public static string userName = string.Empty;
  19. public static bool isSN;
  20. //设备sn号
  21. public static string Serialno = string.Empty;
  22. //影创账号
  23. public static string Account = string.Empty;
  24. //影创应用号
  25. public static string AppID = string.Empty;
  26. //影创Token
  27. public static string Token = string.Empty;
  28. //应用Token
  29. public static string User_Token = string.Empty;
  30. //应用uid
  31. public static string uid = string.Empty;
  32. public static JsonData UserIconData;
  33. public static bool isRemindTip { get {
  34. return PlayerPrefs.GetInt("isRemindTip") == 1 ? true : false; } }
  35. /// <summary>
  36. /// 判断是否为游客账号
  37. /// </summary>
  38. /// <returns><c>true</c>, if vistor account was ised, <c>false</c> otherwise.</returns>
  39. public static bool isVistorAccount()
  40. {
  41. return Serialno == Account;
  42. }
  43. /// <summary>
  44. /// 判断用户是否登陆
  45. /// </summary>
  46. /// <returns><c>true</c>, if login was ised, <c>false</c> otherwise.</returns>
  47. public static bool isLogin()
  48. {
  49. return Account != string.Empty;
  50. }
  51. public static string BusyType = "free/busy";
  52. //public static string FreeType = "free";
  53. }