using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class GameManager : D_MonoSingleton { public void LoadMain() { PanelLoading tLoading = UIManager.Instance.OpenUI(); tLoading.DelOver = () => { SceneManager.LoadScene("Main"); }; } public void LoadGame() { PanelLoading tLoading = UIManager.Instance.OpenUI(); tLoading.DelOver = () => { SceneManager.LoadScene("Game"); }; } public void NextLevel() { PlayerData.Instance.CurrentLevel++; LoadGame(); } }