private void OpenTutorial()
 {
     if (HomeTutorialManager.DoesTutorial() && !isInGameScene)
     {
         MonoBehaviourSingleton <UIManager> .I.tutorialMessage.ForceRun("HomeScene", "TutorialStep2_2", null);
     }
 }
예제 #2
0
    protected override void UpdateUIOfTutorial()
    {
        bool flag  = HomeTutorialManager.ShouldRunGachaTutorial();
        bool flag2 = TutorialStep.HasAllTutorialCompleted();
        bool flag3 = !flag && flag2;
        bool flag4 = MonoBehaviourSingleton <LoungeMatchingManager> .IsValid() && MonoBehaviourSingleton <LoungeMatchingManager> .I.isOpenLounge;

        bool flag5 = (int)MonoBehaviourSingleton <UserInfoManager> .I.userStatus.level >= 15;

        SetActive((Enum)UI.BTN_LOUNGE, flag5);
        SetActive((Enum)UI.SPR_LOCK_LOUNGE, !flag5);
        bool is_visible  = flag3 && flag4;
        bool is_visible2 = flag3 && !flag4;

        SetActive((Enum)UI.OBJ_LOUNGE, is_visible);
        SetActive((Enum)UI.BTN_EXPLORE, is_visible2);
        bool flag6 = !HomeTutorialManager.ShouldRunGachaTutorial();
        bool flag7 = MonoBehaviourSingleton <UIManager> .I.mainChat != null && TutorialStep.HasAllTutorialCompleted() && flag6;

        SetActive((Enum)UI.OBJ_MENU_GG, flag7);
        if (flag7)
        {
            CheckHighlightPurchase();
            if (isHighlightPurchase || GameSaveData.instance.IsShowNewsNotification() || isHighlightPikeShop)
            {
                SetBadge((Enum)UI.BTN_MENU_GG_ON, -1, 3, 5, -25, false);
            }
            else
            {
                SetBadge((Enum)UI.BTN_MENU_GG_ON, 0, 3, 0, 0, false);
            }
        }
        base.UpdateUIOfTutorial();
    }
예제 #3
0
 public void SendGetChallengeInfo(Action <bool, Error> call_back)
 {
     if (HomeTutorialManager.ShouldRunGachaTutorial())
     {
         challengeInfo = new QuestChallengeInfoModel.Param();
         if (call_back != null)
         {
             call_back(true, Error.None);
         }
     }
     else
     {
         challengeInfo = null;
         QuestChallengeInfoModel.RequestSendForm post_data = new QuestChallengeInfoModel.RequestSendForm();
         Protocol.Send(QuestChallengeInfoModel.URL, post_data, delegate(QuestChallengeInfoModel ret)
         {
             bool arg = false;
             if (ret.Error == Error.None)
             {
                 arg           = true;
                 challengeInfo = ret.result;
             }
             if (call_back != null)
             {
                 call_back(arg, ret.Error);
             }
         }, string.Empty);
     }
 }
예제 #4
0
 protected override bool CheckNeededOpenQuest()
 {
     if (HomeTutorialManager.ShouldRunGachaTutorial() || MonoBehaviourSingleton <LoungeManager> .I.IsJumpToGacha)
     {
         MonoBehaviourSingleton <LoungeManager> .I.IsJumpToGacha = false;
         DispatchEvent("GACHA_QUEST_COUNTER_AREA", null);
         return(true);
     }
     if (MonoBehaviourSingleton <QuestManager> .I.isBackGachaQuest)
     {
         MonoBehaviourSingleton <QuestManager> .I.isBackGachaQuest = false;
         DispatchEvent("GACHA_QUEST_COUNTER_AREA", null);
         return(true);
     }
     return(false);
 }