NewOnlineGame.cs 711 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class NewOnlineGame : MonoBehaviour
  7. {
  8. public Button inviteButton;
  9. public Button startButton;
  10. public InputField correctAnswersToWin;
  11. public InputField timeLimitPerQuestion;
  12. public InputField timeLimitPerPlayer;
  13. // Start is called before the first frame update
  14. void Start()
  15. {
  16. inviteButton.onClick.AddListener(OpenInvitePanel);
  17. }
  18. private void OpenInvitePanel() {
  19. GameObject.Find("InvitePanel").GetComponent<InvitePanelScript>().ShowPanel();
  20. }
  21. // Update is called once per frame
  22. void Update()
  23. {
  24. }
  25. }