123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using Newtonsoft.Json.Linq;
- using SC.XR.Unity;
- using UnityEngine;
- public class UserManager : SingletonMono<UserManager>
- {
- public void loginBack(bool isLogin)
- {
- if (isLogin)
- {
- UserSceneManager.Instance.callback += (bool b) => {
-
-
- if(b)
- {
- GameScene.Instance.ShowScenes();
- }
-
- };
- HttpTool.Instance.GetAllMaterials(HttpAction.material_init, "", (string msgMater)=> {
- Debug.Log("/material/init===>" + msgMater);
- ModelManager.Instance.init(msgMater);
- HttpTool.Instance.Get(HttpAction.project_init, (string msg) => {
- Debug.Log("/project/index===>" + msg);
- UserSceneManager.Instance.initScene(msg);
-
- });
- });
-
- }
- }
- }
|