UserManager.cs 583 B

123456789101112131415161718192021222324252627
  1. using Newtonsoft.Json.Linq;
  2. using SC.XR.Unity;
  3. using UnityEngine;
  4. public class UserManager : SingletonMono<UserManager>
  5. {
  6. public void loginBack(bool isLogin)
  7. {
  8. if (isLogin)
  9. {
  10. HttpTool.Instance.GetAllMaterials("/material/init", "", (string msg)=> {
  11. Debug.Log("/material/init===>" + msg);
  12. ModelManager.Instance.init(msg);
  13. });
  14. HttpTool.Instance.Get("/project/index", (string msg) => {
  15. Debug.Log("/project/index===>" + msg);
  16. });
  17. }
  18. }
  19. }