Hauptmenü erstellt
This commit is contained in:
28
Assets/AssetsFORELLE/Script/MainMenu.cs
Normal file
28
Assets/AssetsFORELLE/Script/MainMenu.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class MainMenu : MonoBehaviour
|
||||
{
|
||||
public string newGameScene;
|
||||
public string continueGameScene;
|
||||
|
||||
public void startGame()
|
||||
{
|
||||
Debug.Log("Main Menu: New Game");
|
||||
SceneManager.LoadScene(newGameScene);
|
||||
}
|
||||
|
||||
public void continueGame()
|
||||
{
|
||||
Debug.Log("Main Menu: Continue Game");
|
||||
SceneManager.LoadScene(continueGameScene);
|
||||
}
|
||||
|
||||
public void endGame()
|
||||
{
|
||||
Debug.Log("Main Menu: Quit Game");
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
11
Assets/AssetsFORELLE/Script/MainMenu.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/MainMenu.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b24fd78615fb17b4094993589dea7207
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user