added WinLoseHandler script
This commit is contained in:
parent
f5940f31c0
commit
cceff60f49
12
Unity-Files/Assets/Scripts/Menu/WinLoseHandler.cs
Normal file
12
Unity-Files/Assets/Scripts/Menu/WinLoseHandler.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class WinLoseHandler : MonoBehaviour
|
||||
{
|
||||
public static void ReturnToMenu()
|
||||
{
|
||||
SceneManager.LoadScene("Main Menu");
|
||||
}
|
||||
}
|
11
Unity-Files/Assets/Scripts/Menu/WinLoseHandler.cs.meta
generated
Normal file
11
Unity-Files/Assets/Scripts/Menu/WinLoseHandler.cs.meta
generated
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a8504d71b5f7e374bb0450375fe3e6d3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user