예제 #1
0
    private async void OnEnterManor()
    {
        //功能是否开启
        if (!StaticData.IsOpenFunction(10013))
        {
            return;
        }
        UIComponent.HideUI(UIType.UIFriend);
        //StaticData.OpenFriend(true);
        UIManorComponent uiManorComponent = UIComponent.GetComponentHaveExist <UIManorComponent>(UIType.UIManor);

        if (uiManorComponent == null)
        {
            await UIComponent.CreateUIAsync(UIType.UIManor);

            uiManorComponent = UIComponent.GetComponentHaveExist <UIManorComponent>(UIType.UIManor);
        }
        StaticData.curFriendStealInfo = new FriendStealInfo()
        {
            nickname = scFriendInfo.FriendName,
            headIcon = scFriendInfo.FriendImage,
            playerLevelAndCurrExp = StaticData.GetPlayerLevelAndCurrExp(scFriendInfo.FriendExperience)
        };
        //新手引导完成
        if (StaticData.isOpenGuide && GuideCanvasComponent._instance != null && GuideCanvasComponent._instance.isCurrStepGuiding)
        {
            GuideCanvasComponent._instance.SetLittleStepFinish();
        }
        uiManorComponent.OnButtonEnterFriendManor(scFriendInfo.Uid);
    }
예제 #2
0
    /// <summary>
    /// 关闭界面进入好友庄园
    /// </summary>
    /// <param name="friendID"></param>
    public void CloseAndEnterFriendManor(long friendID)
    {
        OnClickClose();
        UIManorComponent uiManorComponent = UIComponent.GetComponentHaveExist <UIManorComponent>(UIType.UIManor);

        uiManorComponent.OnButtonEnterFriendManor(friendID);
    }
예제 #3
0
    private void OnEnterManor()
    {
        UIManorComponent uiManorComponent = UIComponent.GetComponentHaveExist <UIManorComponent>(UIType.UIManor);

        StaticData.curFriendStealInfo = curFriendStealInfo;
        uiManorComponent.OnButtonEnterFriendManor(curFriendStealInfo.uid);
        if (StaticData.isOpenGuide && GuideCanvasComponent._instance != null && GuideCanvasComponent._instance.isCurrStepGuiding)
        {
            GuideCanvasComponent._instance.SetLittleStepFinish();
        }
    }