Files
PuzzleColorBall/Assets/Scripts/SceneUIManager.cs

24 lines
552 B
C#
Raw Normal View History

2022-12-01 09:03:46 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneUIManager : MonoBehaviour
{
public void LoadMenuScene() {
2023-03-21 17:13:35 +01:00
SceneManager.LoadScene(0);
2022-12-01 09:03:46 +01:00
}
public void LoadPauseMenu() {
//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-03-21 17:13:35 +01:00
2023-02-16 14:55:48 +01:00
}