MiniGameDateManager.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. if(gameinfoList.Count == 0)
  18. {
  19. return false;
  20. }
  21. foreach(GameInfoProto t in gameinfoList)
  22. {
  23. if(t.FirstPassRewardStatus == 1)
  24. {
  25. return true;
  26. }
  27. if(t.StarRewardStatus.Count > 0 )
  28. {
  29. for(int i = 0; i<t.StarRewardStatus.Count;i++)
  30. {
  31. if(t.StarRewardStatus[i] == 1)
  32. {
  33. return true;
  34. }
  35. }
  36. }
  37. }
  38. return false;
  39. }
  40. }
  41. }