2024-10-17 17:23:05 +03:00
|
|
|
|
using Mirror;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Menu : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public CustomNetworkManager networkManager;
|
|
|
|
|
|
|
|
|
|
public void HostLobby()
|
|
|
|
|
{
|
|
|
|
|
networkManager.StartHost();
|
2024-10-17 23:09:51 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void JoinLobby()
|
|
|
|
|
{
|
|
|
|
|
networkManager.networkAddress = "localhost";
|
|
|
|
|
networkManager.StartClient();
|
2024-10-17 17:23:05 +03:00
|
|
|
|
}
|
|
|
|
|
}
|