You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			35 lines
		
	
	
		
			866 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			35 lines
		
	
	
		
			866 B
		
	
	
	
		
			C#
		
	
| using Game.Common;
 | |
| 
 | |
| namespace Game
 | |
| {
 | |
|     public class PageLoading : UIPageBase<ViewLoading>
 | |
|     {
 | |
|         public PageLoading()
 | |
|         {
 | |
|         }
 | |
|         protected override void OnCreate()
 | |
|         {
 | |
|             CreateUI(true);
 | |
|             View.m_Progress.max = 1f;
 | |
|         }
 | |
|         protected override void OnDestroy()
 | |
|         {
 | |
|         }
 | |
|         protected override void OnOpen()
 | |
|         {
 | |
|             EventManager.Instance.AddEvent<float>(EEvent.LoadingProgress, OnProgressChange);
 | |
|         }
 | |
|         protected override void OnClose()
 | |
|         {
 | |
|             EventManager.Instance.RemoveEvent<float>(EEvent.LoadingProgress, OnProgressChange);
 | |
|         }
 | |
|         public override void Update()
 | |
|         {
 | |
| 
 | |
|         }
 | |
|         private void OnProgressChange(float param)
 | |
|         {
 | |
|             View.m_Progress.value = param;
 | |
|         }
 | |
|     }
 | |
| } |