Esempio n. 1
0
 public bool TryPreviewSingelNPC(NPCInfo _info, UITexture _showLabel, PreviewConfigType _previewType)
 {
     curShowLabel = _showLabel;
     CancelAllDownLoad();
     if (_info != null)
     {
         PreviewNPC pp = PreviewNPC.CreateDummy(_info);
         pp.previewConfigType = _previewType;
         pp.StartAsyncCreate(CreateNPCCallBack);
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
    /// <summary>
    /// 非经过我同意禁用本接口  by吴江
    /// </summary>
    /// <param name="_info"></param>
    /// <param name="_callBack"></param>
    /// <returns></returns>
    public bool TryPreviewSingelNPC(int _npcTypeID, System.Action <PreviewNPC> _callBack)
    {
        NPCTypeRef refData = ConfigMng.Instance.GetNPCTypeRef(_npcTypeID);

        if (refData != null)
        {
            PreviewNPC pp = PreviewNPC.CreateDummy(refData);
            pp.mutualExclusion = false;
            pp.StartAsyncCreate(_callBack);
            return(true);
        }
        return(false);
    }
Esempio n. 3
0
    public bool TryPreviewSingelNPC(int _npcTypeID, UITexture _showLabel, PreviewConfigType _previewType)
    {
        curShowLabel = _showLabel;
        CancelAllDownLoad();
        NPCTypeRef refData = ConfigMng.Instance.GetNPCTypeRef(_npcTypeID);

        if (refData != null)
        {
            PreviewNPC pp = PreviewNPC.CreateDummy(refData);
            pp.previewConfigType = _previewType;
            pp.StartAsyncCreate(CreateNPCCallBack);
            return(true);
        }
        return(false);
    }