using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class NewOnlineGame : MonoBehaviour { public Button inviteButton; public Button startButton; public InputField correctAnswersToWin; public InputField timeLimitPerQuestion; public InputField timeLimitPerPlayer; // Start is called before the first frame update void Start() { inviteButton.onClick.AddListener(OpenInvitePanel); } private void OpenInvitePanel() { GameObject.Find("InvitePanel").GetComponent().ShowPanel(); } // Update is called once per frame void Update() { } }