| 
					
				 | 
			
			
				@@ -10,7 +10,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private UI_RoleLvUpUI _ui; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private int oldLvValue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public override void Dispose() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.Dispose(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,12 +24,33 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.viewCom = _ui.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.viewCom.Center(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.modal = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnShown() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.OnShown(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            oldLvValue = (int)this.viewData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UpdateView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void UpdateView() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_txtLv.text = RoleDataManager.lvl.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_txtLastLv.text = oldLvValue.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_txtCurLv.text = RoleDataManager.lvl.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int limiteCountAdd = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int powerCount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (int i = oldLvValue; i < RoleDataManager.lvl; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                RoleLevelCfg cfg = RoleLevelCfgArray.Instance.GetCfg(i); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                limiteCountAdd += cfg.addPowerLimit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                powerCount += cfg.addPower; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_com0.target.visible = limiteCountAdd > 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_com1.target.visible = powerCount > 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_com0.m_txtCount.text = string.Format("+{0}", limiteCountAdd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_com1.m_txtCount.text = string.Format("+{0}", powerCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnHide() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 |