19 lines
332 B
C#
19 lines
332 B
C#
using Mirror;
|
|
using UnityEngine;
|
|
|
|
public class Menu : MonoBehaviour
|
|
{
|
|
public CustomNetworkManager networkManager;
|
|
|
|
public void HostLobby()
|
|
{
|
|
networkManager.StartHost();
|
|
}
|
|
|
|
public void JoinLobby()
|
|
{
|
|
networkManager.networkAddress = "localhost";
|
|
networkManager.StartClient();
|
|
}
|
|
}
|