Esempio n. 1
0
 /// <summary>
 /// 服务端数据构造
 /// </summary>
 public MercenaryInfo(NewPetRef _refData)
 {
     refData    = _refData;
     serverData = new PetData();
     serverData.serverInstanceID = _refData.type;
     SetTitle();
 }
Esempio n. 2
0
    public bool TryPreviewSingelEntourage(int _configID, UITexture _showLabel)
    {
        curShowLabel = _showLabel;
        CancelAllDownLoad();
        NewPetRef     refData = ConfigMng.Instance.GetNewPetRef(_configID);
        MercenaryInfo info    = new MercenaryInfo(refData);

        if (info != null)
        {
            PreviewEntourage pp = PreviewEntourage.CreateDummy(info);
            pp.StartAsyncCreate(CreateEntourageCallBack);
            return(true);
        }
        return(false);
    }
Esempio n. 3
0
    protected void LoadEntourage()
    {
        if (configID <= 0) return;
		NewPetRef refData = ConfigMng.Instance.GetNewPetRef(configID);
		MercenaryInfo info = new MercenaryInfo(refData);
		GameCenter.previewManager.TryPreviewSingelEntourage(info, (x) =>
        {
            x.transform.parent = this.transform;
            x.transform.localPosition = Vector3.zero;
            x.transform.localEulerAngles = Vector3.zero;
            x.transform.localScale = Vector3.one * scale;
            x.FaceToNoLerp(lookRotation);
            x.gameObject.SetMaskLayer(LayerMask.NameToLayer("NGUI"));
        });
    }