You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
664 B

using UnityEngine;
using UnityEngine.UI;
namespace Networking.UI {
public class StartMenu : MonoBehaviour {
[Header("Start Menu")]
public InputField usernameField;
public Button connectButton;
public GameObject connectingIndicator;
public void ConnectToServer() {
usernameField.interactable = false;
connectButton.interactable = false;
connectingIndicator.SetActive(true);
}
public void ResetUI() {
usernameField.interactable = true;
connectButton.interactable = true;
connectingIndicator.SetActive(false);
}
}
}