Menue scene mit funktionierenden Buttons und Start Script für den PlayerController
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// Oliver
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class UIHandler : MonoBehaviour
|
||||
{
|
||||
public void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ChangeScene(string sceneName)
|
||||
{
|
||||
SceneManager.LoadScene(sceneName);
|
||||
}
|
||||
|
||||
public void Quit()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorApplication.isPlaying = false;
|
||||
#else
|
||||
Application.Quit();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user