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); }
/// <summary>单利函数</summary> public static HttpMsgManager GetInstance() { if (Instance == null) { GameObject HttpMsgManagerObj = new GameObject(); Instance = HttpMsgManagerObj.AddComponent <HttpMsgManager>(); DontDestroyOnLoad(HttpMsgManagerObj); } return(Instance); }