MiniGameDateManager.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. public bool CHECK_TIPS = false; //提示弹窗是否打开
  13. //合成游戏
  14. public int taskID = 40001;
  15. public bool GetRewardRot()
  16. {
  17. foreach(GameInfoProto t in gameinfoList)
  18. {
  19. if(t.FirstPassRewardStatus == 1)
  20. {
  21. return true;
  22. }
  23. if(t.StarRewardStatus.Count > 0 )
  24. {
  25. for(int i = 0; i<t.StarRewardStatus.Count;i++)
  26. {
  27. if(t.StarRewardStatus[i] == 1)
  28. {
  29. return true;
  30. }
  31. }
  32. }
  33. }
  34. return false;
  35. }
  36. }
  37. }