mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-30 04:57:10 +01:00
fixed inputfields
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user