Exemple #1
0
        /// <summary>
        /// 判断新手引导步骤是否少于等于指定的步骤
        /// </summary>
        /// <param name="_eGuide"></param>
        public bool IsCurrentGuideEqual(ENNOVICEGUIDE_TYPE _eGuide)
        {
            bool result = true;

            //之后加个判断从数据库取当前玩家是否已完成新手引导做判断
            if (m_guideData != null)
            {
                //判断当前指定引导是否完成
                result = m_guideData.GuideStateBB.GetValue <int>(EGuideStateBBKey.PlayerNoviceGuideType, -1) == (int)_eGuide;
            }

            return(result);
        }
Exemple #2
0
        public void OnTimer(int nTimerID)
        {
            EntityFactory.CreateMainHeroEntityEvent -= WaitForMainPlayerCreate;

            ENNOVICEGUIDE_TYPE PlayerNoviceGuideType = m_guideData.GuideStateBB.GetValue <ENNOVICEGUIDE_TYPE>(EGuideStateBBKey.PlayerNoviceGuideType, ENNOVICEGUIDE_TYPE.ENNOVICEGUIDE_TYPE_GUID_NEWPLAYER);

            if (PlayerNoviceGuideType == ENNOVICEGUIDE_TYPE.ENNOVICEGUIDE_TYPE_GUID_NEWPLAYER)
            {
                NewPlayerGuide();
            }
            else if ((int)PlayerNoviceGuideType <= (int)ENNOVICEGUIDE_TYPE.ENNOVICEGUIDE_TYPE_GUIDE_MAX - 1)
            {
                GuideManager.enable = true;
            }
        }