fixed inputfields

This commit is contained in:
DerTyp187
2021-12-16 00:40:47 +01:00
parent 82dc2c3c6c
commit 831346c4b0
6 changed files with 40 additions and 41 deletions

View File

@@ -7,7 +7,7 @@ public class MenuStartHost : MonoBehaviour
[SerializeField] private TMP_InputField UsernameInput;
public void StartHost()
{
if (UsernameInput.text != null)
if (UsernameInput.text != "")
{
Debug.Log("[MENU] Starting host...");
GameObject.FindGameObjectWithTag("VariableSaver").GetComponent<VariableSaver>().username = UsernameInput.text;