MiniGameDateManager.cs 987 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 GetRewardRot()
  13. {
  14. foreach(GameInfoProto t in gameinfoList)
  15. {
  16. if(t.FirstPassRewardStatus == 1)
  17. {
  18. return true;
  19. }
  20. if(t.StarRewardStatus.Count > 0 )
  21. {
  22. for(int i = 0; i<t.StarRewardStatus.Count;i++)
  23. {
  24. if(t.StarRewardStatus[i] == 1)
  25. {
  26. return true;
  27. }
  28. }
  29. }
  30. }
  31. return false;
  32. }
  33. }
  34. }