Player Controller and color changer
This commit is contained in:
33
Assets/Scripts/SceneUIManager.cs
Normal file
33
Assets/Scripts/SceneUIManager.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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);
|
||||
}
|
||||
|
||||
public void LoadScene(int sceneIndex) {
|
||||
SceneManager.LoadScene(sceneIndex);
|
||||
}
|
||||
|
||||
public void DisableUI(string UIName) {
|
||||
//to be implemented when some ui is done
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user