18 lines
423 B
C#
18 lines
423 B
C#
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.SceneManagement;
|
||
|
|
|
||
|
|
public class GameplayManager : MonoBehaviour
|
||
|
|
{
|
||
|
|
public void BackToMenu()
|
||
|
|
{
|
||
|
|
_ = gameObject.AddComponent<NetworkManager>().GameRoom.Leave(true);
|
||
|
|
SceneManager.LoadScene("Menu", LoadSceneMode.Single);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void Exit()
|
||
|
|
{
|
||
|
|
_ = gameObject.AddComponent<NetworkManager>().GameRoom.Leave(true);
|
||
|
|
Application.Quit();
|
||
|
|
}
|
||
|
|
}
|