protected override void Awake()
 {
     s_instance = this;
     base.m_destroyOnSceneLoad = false;
     base.Awake();
     this.m_backButton.SetText(GameStrings.Get("GLOBAL_BACK"));
 }
예제 #2
0
    private bool CanShowCredits()
    {
        SceneMgr.Mode mode = SceneMgr.Get().GetMode();
        switch (mode)
        {
        case SceneMgr.Mode.GAMEPLAY:
        case SceneMgr.Mode.PACKOPENING:
            break;

        default:
            switch (mode)
            {
            case SceneMgr.Mode.CREDITS:
            case SceneMgr.Mode.ADVENTURE:
                break;

            case SceneMgr.Mode.RESET:
                goto Label_003D;

            default:
                goto Label_003D;
            }
            break;
        }
        return(false);

Label_003D:
        if ((GeneralStore.Get() != null) && GeneralStore.Get().IsShown())
        {
            return(false);
        }
        if (Network.Get().IsFindingGame())
        {
            return(false);
        }
        if (!GameUtils.AreAllTutorialsComplete())
        {
            return(false);
        }
        if (WelcomeQuests.Get() != null)
        {
            return(false);
        }
        if ((ArenaStore.Get() != null) && ArenaStore.Get().IsShown())
        {
            return(false);
        }
        if ((DraftDisplay.Get() != null) && (DraftDisplay.Get().GetDraftMode() == DraftDisplay.DraftMode.IN_REWARDS))
        {
            return(false);
        }
        return(true);
    }
 protected override void OnDestroy()
 {
     s_instance = null;
 }