Ejemplo n.º 1
0
 /// <summary>
 /// 非经过我同意禁用本接口  by吴江
 /// </summary>
 /// <param name="_info"></param>
 /// <param name="_callBack"></param>
 /// <returns></returns>
 public bool TryPreviewSingelMount(MountInfo _info, System.Action <PreviewMount> _callBack)
 {
     if (_info != null)
     {
         PreviewMount pp = PreviewMount.CreateDummy(_info);
         pp.mutualExclusion = false;
         pp.StartAsyncCreate(_callBack);
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public bool TryPreviewMount(MountInfo _info, UITexture _showLabel, MountAnimFSM.EventType _type = ActorAnimFSM.EventType.Idle)
 {
     curShowLabel = _showLabel;
     CancelAllDownLoad();
     if (_info != null)
     {
         PreviewMount pp = PreviewMount.CreateDummy(_info);
         pp.needRandID = _type;
         pp.StartAsyncCreate(CreateMountCallBack);
         return(true);
     }
     return(false);
 }
Ejemplo n.º 3
0
    public bool TryPreviewSingelMount(int _configID, UITexture _showLabel, string idleAnimName)
    {
        curShowLabel = _showLabel;
        CancelAllDownLoad();
        MountRef  refData = ConfigMng.Instance.GetMountRef(_configID);
        MountInfo info    = new MountInfo(refData);

        if (info != null)
        {
            PreviewMount pp = PreviewMount.CreateDummy(info);
            pp.idleAnimName = idleAnimName;
            pp.StartAsyncCreate(CreateMountCallBack);
            return(true);
        }
        return(false);
    }
Ejemplo n.º 4
0
 public bool TryPreviewSingelMount(MountInfo _info, UITexture _showLabel)
 {
     curShowLabel = _showLabel;
     if (curPreviewInfo != null && curPreviewInfo.ConfigID == _info.ConfigID && curPreviewMount != null)
     {
         curPreviewInfo = _info;
         BindRenderAndUI(curShowLabel);
         return(true);
     }
     else
     {
         curPreviewInfo = _info;
         CancelAllDownLoad();
         if (_info != null)
         {
             PreviewMount pp = PreviewMount.CreateDummy(_info);
             pp.StartAsyncCreate(CreateMountCallBack);
             return(true);
         }
         return(false);
     }
 }