MiniGameDateManager.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using ET;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. namespace GFGGame
  7. {
  8. class MiniGameDateManager : SingletonBase<MiniGameDateManager>
  9. {
  10. public List<ItemInfoProto> itemList = new List<ItemInfoProto>();
  11. public List<GameInfoProto> gameinfoList = new List<GameInfoProto>();
  12. //记录合成游戏的矩阵信息
  13. private List<List<int>> idList = new List<List<int>>();
  14. public bool CHECK_TIPS = false; //提示弹窗是否打开
  15. //合成游戏
  16. public int taskID = 40001;
  17. public bool GetRewardRot()
  18. {
  19. if(gameinfoList.Count == 0)
  20. {
  21. return false;
  22. }
  23. foreach(GameInfoProto t in gameinfoList)
  24. {
  25. if(t.FirstPassRewardStatus == 1)
  26. {
  27. return true;
  28. }
  29. if(t.StarRewardStatus.Count > 0 )
  30. {
  31. for(int i = 0; i<t.StarRewardStatus.Count;i++)
  32. {
  33. if(t.StarRewardStatus[i] == 1)
  34. {
  35. return true;
  36. }
  37. }
  38. }
  39. }
  40. return false;
  41. }
  42. }
  43. }