| 
									
										
										
										
											2022-02-09 11:36:47 +00:00
										 |  |  |  | using System.Collections; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using UnityEngine; | 
					
						
							|  |  |  |  | using UnityEngine.SceneManagement; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public class GameManager : D_MonoSingleton<GameManager> | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     public void LoadMain() | 
					
						
							|  |  |  |  |     { | 
					
						
							| 
									
										
										
										
											2022-02-16 10:01:09 +00:00
										 |  |  |  |         PanelLoading tLoading = UIManager.Instance.OpenUI<PanelLoading>(); | 
					
						
							|  |  |  |  |         tLoading.DelOver = () => | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             SceneManager.LoadScene("Main"); | 
					
						
							|  |  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2022-02-09 11:36:47 +00:00
										 |  |  |  |     } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     public void LoadGame() | 
					
						
							|  |  |  |  |     { | 
					
						
							| 
									
										
										
										
											2022-02-16 10:01:09 +00:00
										 |  |  |  |         PanelLoading tLoading = UIManager.Instance.OpenUI<PanelLoading>(); | 
					
						
							|  |  |  |  |         tLoading.DelOver = () => | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             SceneManager.LoadScene("Game"); | 
					
						
							|  |  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2022-02-09 11:36:47 +00:00
										 |  |  |  |     } | 
					
						
							| 
									
										
										
										
											2022-02-09 12:28:20 +00:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |     public void NextLevel() | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         PlayerData.Instance.CurrentLevel++; | 
					
						
							|  |  |  |  |         LoadGame(); | 
					
						
							|  |  |  |  |     } | 
					
						
							| 
									
										
										
										
											2022-02-09 11:36:47 +00:00
										 |  |  |  | } |