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,20 @@
using Mirror;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class JoinBtnScript : MonoBehaviour
{
[SerializeField] private TMP_InputField inputIp;
[SerializeField] private TMP_InputField inputUsername;
private void Start()
{
gameObject.GetComponent<Button>().onClick.AddListener(JoinServer);
}
public void JoinServer()
{
NetworkClient.Connect(inputIp.text);
}
}