Exemple #1
0
 private void clear()
 {
     isShowTreeMenu  = true;
     isWalkCamea     = true;
     alertMSG        = null;
     currentEquipTip = null;
     currentModel    = null;
     currentGroup    = null;
 }
Exemple #2
0
 private void failureHandle(string error)
 {
     Log.Logger.debug(Log.Module.Login, error);
     if (msg == null)
     {
         GameObject bubbleTip = ResourceManager.getInstance().loadUISpawnPool("Prefabs/UI/MyUI/BubbleToast", msgParent);
         bubbleTip.transform.localPosition = Vector3.zero;
         BubbleToast tip = bubbleTip.GetComponent <BubbleToast>();
         msg = tip;
         msg.setContent(error, false);
         isShowMsg = true;
         return;
     }
     else if (!isShowMsg)
     {
         GameObject bubbleTip = ResourceManager.getInstance().loadUISpawnPool("Prefabs/UI/BubbleToast", msgParent);
         bubbleTip.transform.localPosition = Vector3.zero;
     }
     msg.setContent(error, false);
     isShowMsg = true;
 }
Exemple #3
0
 /// <summary>
 /// 显示警告信息
 /// </summary>
 /// <param name="msg"></param>
 public void showAlertMSG(string msg)
 {
     if (msg == null || msg.Equals(""))
     {
         if (!(alertMSG == null || !alertMSG.gameObject.activeSelf))
         {
             ResourceManager.getInstance().getUIPool.Despawn(alertMSG.transform);
         }
         return;
     }
     if (alertMSG == null || !alertMSG.gameObject.activeSelf)
     {
         GameObject bubbleTip = ResourceManager.getInstance().loadUISpawnPool("Prefabs/UI/MyUI/BubbleToast1", alertMSGParent.gameObject);
         bubbleTip.transform.localPosition = new Vector3(0, 150, 0);
         BubbleToast tip = bubbleTip.GetComponent <BubbleToast>();
         tip.init(Vector2.zero);
         this.alertMSG = tip;
         tip.setContent(msg);
     }
     else
     {
         alertMSG.setContent(msg, true);
     }
 }