2022-12-01 09:03:46 +01:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
|
|
|
|
|
public class SceneUIManager : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
private int menuSceneIndex = 0, currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
|
|
|
|
|
|
|
|
|
|
public void LoadMenuScene() {
|
|
|
|
|
SceneManager.LoadScene(menuSceneIndex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void LoadPauseMenu() {
|
|
|
|
|
//to be implemented when the ui is done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void LoadOptionsMenu() {
|
|
|
|
|
//to be implemented when the ui is done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void LoadNextScene() {
|
|
|
|
|
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-20 19:56:27 +01:00
|
|
|
public static void LoadScene(int sceneIndex) {
|
2022-12-01 09:03:46 +01:00
|
|
|
SceneManager.LoadScene(sceneIndex);
|
|
|
|
|
}
|
2023-02-16 14:55:48 +01:00
|
|
|
}
|