예제 #1
0
    /// <summary>
    /// 非经过我同意禁用本接口  by吴江
    /// </summary>
    /// <param name="_info"></param>
    /// <param name="_callBack"></param>
    /// <returns></returns>
    public bool TryPreviewSingleEquipment(EquipmentInfo _eq, System.Action <PreviewEquipment> _callBack)
    {
        if (_eq == null)
        {
            return(false);
        }
        PreviewEquipment pe = PreviewEquipment.CreateDummy(_eq);

        pe.mutualExclusion = false;
        pe.StartAsyncCreate(_callBack);
        return(true);
    }
예제 #2
0
 /// <summary>
 /// 预览单件装备
 /// </summary>
 /// <param name="_eq"></param>
 /// <param name="_showLabel"></param>
 /// <returns></returns>
 public bool TryPreviewSingleEquipment(EquipmentInfo _eq, UITexture _showLabel)
 {
     if (_eq == null)
     {
         return(false);
     }
     curShowLabel = _showLabel;
     if (curPreviewEqInfo != null && curPreviewEqInfo.EID == _eq.EID && curPreviewEqObj != null)
     {
         curPreviewEqInfo = _eq;
         BindRenderAndUI(curShowLabel);
         return(true);
     }
     else
     {
         ClearModel();
         curPreviewEqInfo = _eq;
         CancelAllDownLoad();
         PreviewEquipment pe = PreviewEquipment.CreateDummy(_eq);
         pe.StartAsyncCreate(CreateEquipmentCallBack);
         return(true);
     }
 }