Beispiel #1
0
    private void Start()
    {
        //IL_0001: Unknown result type (might be due to invalid IL or missing references)
        this.get_gameObject().SetActive(IsEnable());
        if (IsEnable())
        {
            int num     = QuestTable.GetSameRushQuestData((uint)MonoBehaviourSingleton <InGameManager> .I.rushId).Count - 1;
            int waveNum = MonoBehaviourSingleton <InGameManager> .I.GetWaveNum(0);

            waveMax.text = "/" + string.Format(StringTable.Get(STRING_CATEGORY.RUSH_WAVE, 10004400u), waveNum + num - 1);
            wave         = MonoBehaviourSingleton <InGameManager> .I.GetCurrentWaveNum();

            SetWaveNow(wave);
        }
    }
    private void CreateFloorPopText()
    {
        int count = questIdList.Count;
        int num   = 0;

        maxFloorList = new string[count];
        minFloorList = new string[count];
        for (int i = 0; i < count; i++)
        {
            minFloorList[i] = (num + 1).ToString();
            QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData((uint)questIdList[i]);

            List <QuestTable.QuestTableData> sameRushQuestData = QuestTable.GetSameRushQuestData(questData.rushId);
            int num2 = sameRushQuestData.Count - 1;
            num            += num2;
            maxFloorList[i] = num.ToString();
        }
    }
Beispiel #3
0
    protected IEnumerator StartPredownload()
    {
        SetActive((Enum)UI.BTN_JOIN, false);
        SetActive((Enum)UI.BTN_CREATE, false);
        SetActive((Enum)UI.BTN_AUTO_MATCHING, false);
        SetActive((Enum)UI.BTN_JOIN_OFF, false);
        SetActive((Enum)UI.BTN_CREATE_OFF, false);
        SetActive((Enum)UI.BTN_AUTO_MATCHING_OFF, false);
        List <ResourceInfo> list = new List <ResourceInfo>();
        List <QuestTable.QuestTableData> targetQuest = QuestTable.GetSameRushQuestData(info.GetQuestData().rushId);

        targetQuest.Remove(info.GetQuestData());
        foreach (QuestTable.QuestTableData item2 in targetQuest)
        {
            uint mapId = item2.mapId;
            FieldMapTable.FieldMapTableData fieldMapData = Singleton <FieldMapTable> .I.GetFieldMapData(mapId);

            if (fieldMapData == null)
            {
                yield break;
            }
            string stageName = fieldMapData.stageName;
            if (string.IsNullOrEmpty(stageName))
            {
                stageName = "ST011D_01";
            }
            StageTable.StageData stageData = Singleton <StageTable> .I.GetData(stageName);

            if (stageData == null)
            {
                yield break;
            }
            list.Add(new ResourceInfo(RESOURCE_CATEGORY.STAGE_SCENE, stageData.scene));
            list.Add(new ResourceInfo(RESOURCE_CATEGORY.STAGE_SKY, stageData.sky));
            if (!string.IsNullOrEmpty(stageData.cameraLinkEffect))
            {
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, stageData.cameraLinkEffect));
            }
            if (!string.IsNullOrEmpty(stageData.cameraLinkEffectY0))
            {
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, stageData.cameraLinkEffectY0));
            }
            if (!string.IsNullOrEmpty(stageData.rootEffect))
            {
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, stageData.rootEffect));
            }
            for (int i = 0; i < 8; i++)
            {
                if (!string.IsNullOrEmpty(stageData.useEffects[i]))
                {
                    list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, stageData.useEffects[i]));
                }
            }
            EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)item2.enemyID[0]);

            int    bodyId   = enemyData.modelId;
            string bodyName = ResourceName.GetEnemyBody(bodyId);
            string mateName = ResourceName.GetEnemyMaterial(bodyId);
            string animName = ResourceName.GetEnemyAnim(enemyData.animId);
            list.Add(new ResourceInfo(RESOURCE_CATEGORY.ENEMY_MODEL, bodyName));
            if (!string.IsNullOrEmpty(mateName))
            {
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.ENEMY_MATERIAL, bodyName));
            }
            list.Add(new ResourceInfo(RESOURCE_CATEGORY.ENEMY_ANIM, animName));
            if (!string.IsNullOrEmpty(enemyData.baseEffectName))
            {
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, enemyData.baseEffectName));
            }
        }
        if (list.Find((ResourceInfo x) => !MonoBehaviourSingleton <ResourceManager> .I.IsCached(x.category, x.packageName)) != null)
        {
            RequestEvent("ASSET_DOWNLOAD", StringTable.Get(STRING_CATEGORY.COMMON_DIALOG, 3000u));
            SetActive((Enum)UI.BTN_JOIN_OFF, true);
            SetActive((Enum)UI.BTN_CREATE_OFF, true);
            SetActive((Enum)UI.BTN_AUTO_MATCHING_OFF, true);
            LoadingQueue load_queue = new LoadingQueue(this);
            foreach (ResourceInfo item3 in list)
            {
                if (!string.IsNullOrEmpty(item3.packageName) && !MonoBehaviourSingleton <ResourceManager> .I.IsCached(item3.category, item3.packageName))
                {
                    ResourceManager.downloadOnly = true;
                    load_queue.Load(item3.category, item3.packageName, null, false);
                    ResourceManager.downloadOnly = false;
                    yield return((object)load_queue.Wait());
                }
            }
        }
        bool pushEnable = true;

        SetActive((Enum)UI.BTN_JOIN, pushEnable);
        SetActive((Enum)UI.BTN_CREATE, pushEnable);
        SetActive((Enum)UI.BTN_AUTO_MATCHING, pushEnable);
        SetActive((Enum)UI.BTN_JOIN_OFF, !pushEnable);
        SetActive((Enum)UI.BTN_CREATE_OFF, !pushEnable);
        SetActive((Enum)UI.BTN_AUTO_MATCHING_OFF, !pushEnable);
    }