mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-30 21:17:09 +01:00
fixed github bug
This commit is contained in:
@@ -5,9 +5,14 @@ public class JoinLeaveManager : MonoBehaviour
|
||||
{
|
||||
private NetworkManager networkManager;
|
||||
|
||||
public void Join(string ip, string username)
|
||||
private void Start()
|
||||
{
|
||||
networkManager = GetComponent<NetworkManager>();
|
||||
}
|
||||
|
||||
public void Join(string ip, string username)
|
||||
{
|
||||
|
||||
|
||||
Debug.Log("[JoinLeaveManager] Trying to join server: " + ip + " as " + username);
|
||||
|
||||
@@ -15,4 +20,9 @@ public class JoinLeaveManager : MonoBehaviour
|
||||
networkManager.networkAddress = ip;
|
||||
Debug.Log("[JoinLeaveManager] " + username + " joined the server: " + ip);
|
||||
}
|
||||
|
||||
public void Host()
|
||||
{
|
||||
networkManager.StartHost();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user