| 
					
				 | 
			
			
				@@ -1,18 +1,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using ET; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using FairyGUI; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-using static UnityEngine.UI.CanvasScaler; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public class RoleDataHandler 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //单位秒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private const int INTERVAL_HEARTBEAT = 20; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private static int _heartbeatCDEnd = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public static void StartUpdate() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            int currentTimeSecs = (int)(Game.TimeInfo.ServerNow() / 1000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _heartbeatCDEnd = currentTimeSecs + INTERVAL_HEARTBEAT; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             StopUpdate(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //每秒检测 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Timers.inst.Add(1, 0, OnUpdate); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -36,20 +30,10 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     NumericHelper.RequestAddAttributePoint(GameGlobal.zoneScene, NumericType.Power).Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (currentTimeSecs >= _heartbeatCDEnd) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //GameProxy.ReqUpdateTime(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                _heartbeatCDEnd = currentTimeSecs + INTERVAL_HEARTBEAT; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int dailyResetSecs = GameGlobal.myNumericComponent.GetAsInt(NumericType.DailyResetSecs); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (TimeHelper.ServerNowSecs >= dailyResetSecs) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 CommonSProxy.ResetDailyData().Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                RechargeSProxy.ReqRequestGiftBagInfo().Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                RechargeSProxy.ReqExchangeInfo().Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                DailyTaskSProxy.ReqDailyTaskInfos().Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                SuitFosterProxy.SendGetSuitInfos().Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                FieldSProxy.ReqFieldInstanceInfos().Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |