Esempio n. 1
0
    public void SetRemoteGuideStep(GuideTypePB guideType, int step)
    {
        //step = 1000;
        var currentStep = GuideManager.GetRemoteGuideStep(guideType);

        //引导步骤大于要设置的步骤的时候不做处理
        Debug.LogError("currentStep" + currentStep + "step" + step);
        if (currentStep >= step)
        {
            return;
        }
        LoadingOverlay.Instance.Show();

        var req = new GuideReq
        {
            GuideType = guideType,
            GuideId   = step
        };

        Debug.LogError("guideType:" + guideType + "  step:" + step);

        var buffer = NetWorkManager.GetByteData(req);

        NetWorkManager.Instance.Send <GuideRes>(CMD.USERC_GUIDE, buffer, OnSetGuideSuccess);
    }
Esempio n. 2
0
        /// <summary>
        /// 获取功能引导阶段
        /// </summary>
        /// <param name="typePb">引导类型</param>
        /// <returns></returns>
        public static FunctionGuideStage CurFunctionGuide(GuideTypePB typePb)
        {
            FunctionGuideStage stage = FunctionGuideStage.Function_DEFAULT;

            switch (typePb)
            {
            case GuideTypePB.MainGuide:
                break;

            case GuideTypePB.EncourageActGuide:
                break;

            case GuideTypePB.CardMemoriesGuide:
                break;

            case GuideTypePB.MainGuideRecord:
                break;

            case GuideTypePB.LoveGuideCoaxSleep:
                stage = CoaxSleepGuideStage();
                break;
            }

            return(stage);
        }
Esempio n. 3
0
        public static int GetRemoteGuideStep(GuideTypePB type)
        {
            if (_remoteGuideDict != null)
            {
                if (_remoteGuideDict.ContainsKey(type))
                {
                    return(_remoteGuideDict[type]);
                }
            }


            return(-1);
        }
Esempio n. 4
0
 public static void SetRemoteGuideStep(GuideTypePB guideType, int step)
 {
     _guideModule.SetRemoteGuideStep(guideType, step);
 }
Esempio n. 5
0
 /// <summary>
 /// 获取主线引导奖励从规则
 /// </summary>
 /// <returns></returns>
 public static List <AwardPB> GetGuideAwardsToRule(GuideTypePB type)
 {
     return(_guideAwards[type]);
 }