| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 | 
							- using ET;
 
- using System;
 
- using System.Collections;
 
- using System.Collections.Generic;
 
- using System.Text.RegularExpressions;
 
- using UnityEngine;
 
- namespace GFGGame
 
- {
 
-     class MiniGameDateManager : SingletonBase<MiniGameDateManager>
 
-     {
 
-         public List<ItemInfoProto> itemList = new List<ItemInfoProto>();
 
-         public List<GameInfoProto> gameinfoList = new List<GameInfoProto>();
 
-         //记录合成游戏的矩阵信息
 
-         public List<int> idList_CS = new List<int>();
 
-         public Dictionary<int, int> NewItemIdDic = new Dictionary<int, int>();
 
-         public string ItemIdVPosition = "";
 
-         public int MergeGameType = 1;
 
-         //资源组的名字
 
-         public int MergeGameMatType = 1;
 
-         public bool CurLevelStatus;
 
-         public bool CHECK_TIPS = false; //提示弹窗是否打开
 
-         //合成游戏
 
-         public int taskID = 40001;
 
-         public bool GetRewardRot()
 
-         {
 
-             if(gameinfoList.Count == 0)
 
-             {
 
-                 return false;
 
-             }
 
-             foreach(GameInfoProto t in gameinfoList)
 
-             {
 
-                 if(t.FirstPassRewardStatus == 1)
 
-                 {
 
-                     return true;
 
-                 }
 
-                 if(t.StarRewardStatus.Count > 0 )
 
-                 {
 
-                     for(int i = 0; i<t.StarRewardStatus.Count;i++)
 
-                     {
 
-                         if(t.StarRewardStatus[i] == 1)
 
-                         {
 
-                             return true;
 
-                         }
 
-                     }
 
-                 } 
 
-             }
 
-             return false;
 
-         }
 
-         public List<List<int>> GetIdListToLL()
 
-         {
 
-             List<List<int>> idlist = new List<List<int>>();
 
-             int itemNum = 5;
 
-             int count = 0;
 
-             for (int i = 0; i < itemNum; i++)
 
-             {
 
-                 idlist.Add(new List<int>());
 
-                 for (int j = 0; j < itemNum; j++)
 
-                 {
 
-                     int index = i * itemNum + j;
 
-                     //对两个按钮单独处理
 
-                     if (i == itemNum - 1)
 
-                     {
 
-                         if (j == 0)
 
-                         {
 
-                             idlist[i].Add(-1);
 
-                             continue;
 
-                         }
 
-                         if (j == itemNum - 1)
 
-                         {
 
-                             idlist[i].Add(-1);
 
-                             continue;
 
-                         }
 
-                     }
 
-                     idlist[i].Add(idList_CS[count]);
 
-                     idlist[i][j] = idList_CS[count];
 
-                     count++;
 
-                 }
 
-             }
 
-             return idlist;
 
-         }
 
-         public List<int> GetListByll(List<List<int>> idlist)
 
-         {
 
-             List<int> idList_S = new List<int>();
 
-             int itemNum = 5;
 
-             for (int i = 0; i < itemNum; i++)
 
-             {
 
-                 for (int j = 0; j < itemNum; j++)
 
-                 {
 
-                     //对两个按钮单独处理
 
-                     if (i == itemNum - 1)
 
-                     {
 
-                         if (j == 0)
 
-                         {
 
-                             continue;
 
-                         }
 
-                         if (j == itemNum - 1)
 
-                         {
 
-                             continue;
 
-                         }
 
-                     }
 
-                     idList_S.Add(idlist[i][j]);
 
-                 }
 
-             }
 
-             return idList_S;
 
-         }
 
-         public List<int> GetIDListByString(string name)
 
-         {
 
-             List<int> idList = new List<int>();
 
-             string[] parts = Regex.Split(name, "-");
 
-             foreach (string id in parts)
 
-             {
 
-                 idList.Add(int.Parse(id));
 
-             }
 
-             return idList;
 
-         }
 
-     }
 
- }
 
 
  |