示例#1
0
    /// <summary>
    /// 获取宠物属性信息
    /// </summary>
    /// <param name="_pt"></param>
    protected void S2C_OnGotPetInfo(Pt _pt)
    {
        pt_look_pet_ride_info_d713 msg = _pt as pt_look_pet_ride_info_d713;

        //Debug.Log("S2C_OnGotPetInfo");
        if (msg != null)
        {
            if (curAskPlayerInfo != null)
            {
                curAskPlayerInfo.UpdateInfo(msg);
            }
            if (OnGotCurAskPlayerInfo != null)
            {
                OnGotCurAskPlayerInfo();
            }
            NewRankingWnd wnd = GameCenter.uIMng.GetGui <NewRankingWnd>();
            if (wnd != null)
            {
                if (OnGotRankOtherPetInfo != null && GameCenter.newRankingMng.CurOtherId == curAskPlayerInfo.ServerInstanceID)
                {
                    OnGotRankOtherPetInfo();
                }
            }
        }
    }
示例#2
0
    public void SetAchievementTip(AchievementData _data)
    {
        AchievementRef achieveRef = ConfigMng.Instance.GetAchievementRef(_data.AchieveId);

        if (achieveRef != null && nameLabel != null)
        {
            nameLabel.text = achieveRef.levelName;
        }
        UIEventListener.Get(this.gameObject).onClick = delegate
        {
            DestroyImmediate(this.gameObject);
            NewRankingWnd rankWnd = GameCenter.uIMng.GetGui <NewRankingWnd>();
            if (rankWnd == null)
            {
                GameCenter.uIMng.SwitchToSubUI(SubGUIType.ACHIEVEMENT);
            }
        };
    }
示例#3
0
    /// <summary>
    /// 获取装备及人物信息
    /// </summary>
    /// <param name="_info">Info.</param>
    protected void S2C_GotCharInfo(Pt _info)
    {
        //Debug.Log("S2C_GotCharInfo");
        pt_look_usr_list_d712 pt = _info as pt_look_usr_list_d712;

        curAskPlayerInfo = new PlayerBaseInfo(new PlayerBaseData(pt));
        if (OnGotCurAskPlayerInfo != null)
        {
            OnGotCurAskPlayerInfo();
        }
        NewRankingWnd wnd = GameCenter.uIMng.GetGui <NewRankingWnd>();

        if (wnd == null)
        {
            GameCenter.uIMng.GenGUI(GUIType.PREVIEWOTHERS, true);
        }
        else
        {
            if (OnGotRankOtherInfo != null)
            {
                OnGotRankOtherInfo();
            }
        }
    }