UserInfo.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 SystemDatas systemDatas;
  34. public static bool isRemindTip { get {
  35. return PlayerPrefs.GetInt("isRemindTip") == 1 ? true : false; } }
  36. /// <summary>
  37. /// 判断是否为游客账号
  38. /// </summary>
  39. /// <returns><c>true</c>, if vistor account was ised, <c>false</c> otherwise.</returns>
  40. public static bool isVistorAccount()
  41. {
  42. return Serialno == Account;
  43. }
  44. /// <summary>
  45. /// 判断用户是否登陆
  46. /// </summary>
  47. /// <returns><c>true</c>, if login was ised, <c>false</c> otherwise.</returns>
  48. public static bool isLogin()
  49. {
  50. return Account != string.Empty;
  51. }
  52. public static string BusyType = "free/busy";
  53. //public static string FreeType = "free";
  54. }