Ejemplo n.º 1
0
 public static void AutoSendHttpVerson(string ver, bool isDebug, UnityAction <System.Object> CallBack)
 {
     HttpMsgManager.GetInstance().SendMsg(new Dictionary <string, string>()
     {
         { "ver", ver }, { "debug", isDebug? 1.ToString(): 0.ToString() }
     }, CallBack);
 }
Ejemplo n.º 2
0
 /// <summary>单利函数</summary>
 public static HttpMsgManager GetInstance()
 {
     if (Instance == null)
     {
         GameObject HttpMsgManagerObj = new GameObject();
         Instance = HttpMsgManagerObj.AddComponent <HttpMsgManager>();
         DontDestroyOnLoad(HttpMsgManagerObj);
     }
     return(Instance);
 }