public void LoadMenu() { if (Time.timeScale == 0f) { Time.timeScale = 1f; } SceneManager.sceneLoaded -= LoadGameScene.GetLoadGameScene().WhenSceneFinillyLoaded; AsyncOperation asyncOperation = SceneManager.LoadSceneAsync(ObjectsInfo.SceneInfo.MenuSceneID, LoadSceneMode.Single); }
public void StartGame() { SceneManager.sceneLoaded += LoadGameScene.GetLoadGameScene().WhenSceneFinillyLoaded; SceneManager.LoadSceneAsync(ObjectsInfo.SceneInfo.GameSceneID, LoadSceneMode.Single); }