| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | 
							- using ET;
 
- using System.Collections;
 
- using System.Collections.Generic;
 
- using UnityEngine;
 
- namespace GFGGame
 
- {
 
-     public class ActivityFYJYDataManager:SingletonBase<ActivityFYJYDataManager>
 
-     {
 
-         public List<GameInfoProto> gameinfoList = new List<GameInfoProto>();
 
-         public bool CheckOpen()
 
-         {
 
-             return (ActivityDataManager.Instance.GetCurOpenActiveByType(ActivityType.AfternoonLeisure) > 0);
 
-         }
 
-         public bool CheckRed()
 
-         {
 
-             if (ActivityDataManager.Instance.GetCurOpenActiveByType(ActivityType.AfternoonLeisure) == 0)
 
-             {
 
-                 return false;
 
-             }
 
-             RoleLimitData limitData;
 
-             limitData = RoleLimitDataManager.GetLimitData(300);
 
-             int times = limitData.TotalPlayMax - limitData.PlayTimes;
 
-             if (times > 0)
 
-             {
 
-                 //当有关卡没通过时
 
-                 for (int i = 0; i < gameinfoList.Count; i++)
 
-                 {
 
-                     if (gameinfoList[i].GameType == 3)
 
-                     {
 
-                         if (!gameinfoList[i].IsCleared)
 
-                         {
 
-                             return true;
 
-                         }
 
-                     }
 
-                 }
 
-                 return false;
 
-             }
 
-             else
 
-             {
 
-                 return false;
 
-             }
 
-         }
 
-     }
 
- }
 
 
  |