コード例 #1
0
 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> ();
         }
     }
 }
コード例 #2
0
 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(); });
             }
         }
     }
 }
コード例 #3
0
 void Awake()
 {
     mInstance = this;
 }
コード例 #4
0
 void OnDestroy()
 {
     mInstance = null;
 }