mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-30 13:07:10 +01:00
idk
This commit is contained in:
@@ -4,13 +4,15 @@ using UnityEngine;
|
||||
|
||||
public class HostBtnScript : MonoBehaviour
|
||||
{
|
||||
private GameObject GameManager;
|
||||
private void Start()
|
||||
{
|
||||
gameObject.GetComponent<Button>().onClick.AddListener(HostServer);
|
||||
GameManager = GameObject.Find("GameManager");
|
||||
}
|
||||
|
||||
public void HostServer()
|
||||
{
|
||||
NetworkClient.ConnectHost();
|
||||
GameManager.GetComponent<NetworkManager>().StartHost();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user