static public void OpenUI() { if (mInstance == null) { Object prefab = PrefabLoader.loadFromPack("LS/pbLSVersionUpgrade"); if (prefab != null) { GameObject obj = Instantiate(prefab) as GameObject; mInstance = obj.GetComponent <UIVersinUpgrade> (); } } }
void GetResponseErrorCode(HttpTask _task) { if (_task != null) { if (_task.response != null) { if (_task.response.errorCode == 2109) { MessageMgr.GetInstance().Upgrape = _task.response.msg.url; AsyncTask.QueueOnMainThread(() => { UIVersinUpgrade.OpenUI(); }); } } } }
void Awake() { mInstance = this; }
void OnDestroy() { mInstance = null; }