updated mirror added testofflinescene

This commit is contained in:
DerTyp187
2021-10-25 13:03:25 +02:00
parent 93244c5160
commit 5921e33205
18 changed files with 2551 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
using Mirror;
using UnityEngine.UI;
using UnityEngine;
public class HostBtnScript : MonoBehaviour
{
private void Start()
{
gameObject.GetComponent<Button>().onClick.AddListener(HostServer);
}
public void HostServer()
{
NetworkClient.ConnectHost();
}
}